Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, profile, date_added, name, url, parent_folder, sync_transaction_version=None):
super(WebBrowser.BookmarkItem, self).__init__(u'bookmark', timestamp=date_added, profile=profile, name=name, value=parent_folder)
self.profile = profile
self.date_added = date_added
self.name = name
self.url = url
self.parent_folder = parent_folder
self.sync_transaction_version = sync_transaction_version
def __init__(self, profile, date_created, name, value, count):
super(WebBrowser.AutofillItem, self).__init__(u'autofill', timestamp=date_created, profile=profile, name=name, value=value)
self.profile = profile
self.date_created = date_created
self.name = name
self.value = value
self.count = count
def __init__(self, profile, url, date_created, key, value):
super(WebBrowser.LocalStorageItem, self).__init__(u'local storage', timestamp=date_created, profile=profile, name=key, value=value)
self.profile = profile
self.url = url
self.date_created = date_created
self.key = key
self.value = value
def __init__(self, profile, url_id, url, title, visit_time, last_visit_time, visit_count, typed_count, from_visit,
transition, hidden, favicon_id, indexed=None, visit_duration=None, visit_source=None,
transition_friendly=None):
super(WebBrowser.URLItem, self).__init__('url', timestamp=visit_time, profile=profile, url=url, name=title)
self.profile = profile
self.url_id = url_id
self.url = url
self.title = title
self.visit_time = visit_time
self.last_visit_time = last_visit_time
self.visit_count = visit_count
self.typed_count = typed_count
self.from_visit = from_visit
self.transition = transition
self.hidden = hidden
self.favicon_id = favicon_id
self.indexed = indexed
self.visit_duration = visit_duration
self.visit_source = visit_source
self.transition_friendly = transition_friendly
def __init__(self, profile, date_created, url, name, value, count):
super(WebBrowser.LoginItem, self).__init__(u'login', timestamp=date_created, profile=profile, url=url, name=name, value=value)
self.profile = profile
self.date_created = date_created
self.url = url
self.name = name
self.value = value
self.count = count
def __init__(self, profile, date_added, date_modified, name, parent_folder, sync_transaction_version=None):
super(WebBrowser.BookmarkFolderItem, self).__init__(u'bookmark folder', timestamp=date_added, profile=profile, name=name, value=parent_folder)
self.profile = profile
self.date_added = date_added
self.date_modified = date_modified
self.name = name
self.parent_folder = parent_folder
self.sync_transaction_version = sync_transaction_version
def __init__(self, profile, download_id, url, received_bytes, total_bytes, state, full_path=None, start_time=None,
end_time=None, target_path=None, current_path=None, opened=None, danger_type=None,
interrupt_reason=None, etag=None, last_modified=None, chain_index=None, interrupt_reason_friendly=None,
danger_type_friendly=None, state_friendly=None, status_friendly=None):
super(WebBrowser.DownloadItem, self).__init__(u'download', timestamp=start_time, profile=profile, url=url)
self.profile = profile
self.download_id = download_id
self.url = url
self.received_bytes = received_bytes
self.total_bytes = total_bytes
self.state = state
self.full_path = full_path
self.start_time = start_time
self.end_time = end_time
self.target_path = target_path
self.current_path = current_path
self.opened = opened
self.danger_type = danger_type
self.interrupt_reason = interrupt_reason
self.etag = etag
self.last_modified = last_modified
def __init__(self, profile, url, timestamp, key, value, interpretation):
super(WebBrowser.PreferenceItem, self).__init__(u'preference', timestamp=timestamp, profile=profile, name=key, value=value)
self.profile = profile
self.url = url
self.timestamp = timestamp
self.key = key
self.value = value
self.interpretation = interpretation
def __init__(self, profile, host_key, path, name, value, creation_utc, last_access_utc, secure, http_only,
persistent=None, has_expires=None, expires_utc=None, priority=None):
super(WebBrowser.CookieItem, self).__init__('cookie', timestamp=creation_utc, profile=profile, url=host_key, name=name, value=value)
self.profile = profile
self.host_key = host_key
self.path = path
self.name = name
self.value = value
self.creation_utc = creation_utc
self.last_access_utc = last_access_utc
self.secure = secure
self.httponly = http_only
self.persistent = persistent
self.has_expires = has_expires
self.expires_utc = expires_utc
self.priority = priority