Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3906)

Unified Diff: chrome/browser/extensions/extension_host.h

Issue 155071: Do some refactoring of renderer_host.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_host.h
===================================================================
--- chrome/browser/extensions/extension_host.h (revision 19907)
+++ chrome/browser/extensions/extension_host.h (working copy)
@@ -62,25 +62,132 @@
// process crashed.
void RecoverCrashedExtension();
- // RenderViewHostDelegate
+ // RenderViewHostDelegate implementation.
+ virtual RenderViewHostDelegate::View* GetViewDelegate() const;
+ virtual RenderViewHostDelegate::Save* GetSaveDelegate() const { return NULL; }
virtual const GURL& GetURL() const { return url_; }
+ virtual TabContents* GetAsTabContents() { return NULL; }
virtual void RenderViewCreated(RenderViewHost* render_view_host);
+ virtual void RenderViewReady(RenderViewHost* render_view_host) {}
virtual void RenderViewGone(RenderViewHost* render_view_host);
- virtual WebPreferences GetWebkitPrefs();
- virtual void RunJavaScriptMessage(
- const std::wstring& message,
- const std::wstring& default_prompt,
- const GURL& frame_url,
- const int flags,
- IPC::Message* reply_msg,
- bool* did_suppress_message);
+ virtual void DidNavigate(RenderViewHost* render_view_host,
+ const ViewHostMsg_FrameNavigate_Params& params) {}
+ virtual void UpdateState(RenderViewHost* render_view_host,
+ int32 page_id,
+ const std::string& state) {}
+ virtual void UpdateTitle(RenderViewHost* render_view_host,
+ int32 page_id,
+ const std::wstring& title) {}
+ virtual void UpdateEncoding(RenderViewHost* render_view_host,
+ const std::wstring& encoding) {}
+ virtual void UpdateTargetURL(int32 page_id, const GURL& url) {}
+ virtual void UpdateThumbnail(const GURL& url,
+ const SkBitmap& bitmap,
+ const ThumbnailScore& score) {}
+ virtual void UpdateInspectorSettings(const std::wstring& raw_settings) {}
+ virtual void Close(RenderViewHost* render_view_host) {}
+ virtual void RequestMove(const gfx::Rect& new_bounds) {}
+ virtual void DidStartLoading(RenderViewHost* render_view_host) {}
virtual void DidStopLoading(RenderViewHost* render_view_host);
- virtual RenderViewHostDelegate::View* GetViewDelegate() const;
- virtual void DidInsertCSS();
+ virtual void DidStartProvisionalLoadForFrame(RenderViewHost* render_view_host,
+ bool is_main_frame,
+ const GURL& url) {}
+ virtual void DidStartReceivingResourceResponse(
+ ResourceRequestDetails* details) {}
+ virtual void DidRedirectProvisionalLoad(int32 page_id,
+ const GURL& source_url,
+ const GURL& target_url) {}
+ virtual void DidRedirectResource(ResourceRequestDetails* details) {}
+ virtual void DidLoadResourceFromMemoryCache(
+ const GURL& url,
+ const std::string& frame_origin,
+ const std::string& main_frame_origin,
+ const std::string& security_info) {}
+ virtual void DidFailProvisionalLoadWithError(
+ RenderViewHost* render_view_host,
+ bool is_main_frame,
+ int error_code,
+ const GURL& url,
+ bool showing_repost_interstitial) {}
+ virtual void UpdateFavIconURL(RenderViewHost* render_view_host,
+ int32 page_id, const GURL& icon_url) {}
+ virtual void DidDownloadImage(RenderViewHost* render_view_host,
+ int id,
+ const GURL& image_url,
+ bool errored,
+ const SkBitmap& image) {}
+ virtual void RequestOpenURL(const GURL& url,
+ const GURL& referrer,
+ WindowOpenDisposition disposition) {}
+ virtual void DomOperationResponse(const std::string& json_string,
+ int automation_id) {}
virtual void ProcessDOMUIMessage(const std::string& message,
const std::string& content,
int request_id,
bool has_callback);
+ virtual void ProcessExternalHostMessage(const std::string& message,
+ const std::string& origin,
+ const std::string& target) {}
+ virtual void DocumentLoadedInFrame() {}
+ virtual void GoToEntryAtOffset(int offset) {}
+ virtual void GetHistoryListCount(int* back_list_count,
+ int* forward_list_count) {}
+ virtual void RunFileChooser(bool multiple_files,
+ const string16& title,
+ const FilePath& default_file) {}
+ virtual void RunJavaScriptMessage(const std::wstring& message,
+ const std::wstring& default_prompt,
+ const GURL& frame_url,
+ const int flags,
+ IPC::Message* reply_msg,
+ bool* did_suppress_message);
+ virtual void RunBeforeUnloadConfirm(const std::wstring& message,
+ IPC::Message* reply_msg) {}
+ virtual void ShowModalHTMLDialog(const GURL& url, int width, int height,
+ const std::string& json_arguments,
+ IPC::Message* reply_msg) {}
+ virtual void PasswordFormsSeen(
+ const std::vector<webkit_glue::PasswordForm>& forms) {}
+ virtual void AutofillFormSubmitted(const webkit_glue::AutofillForm& form) {}
+ virtual void GetAutofillSuggestions(const std::wstring& field_name,
+ const std::wstring& user_text,
+ int64 node_id,
+ int request_id) {}
+ virtual void RemoveAutofillEntry(const std::wstring& field_name,
+ const std::wstring& value) {}
+ virtual void PageHasOSDD(RenderViewHost* render_view_host,
+ int32 page_id, const GURL& doc_url,
+ bool autodetected) {}
+ virtual void DidGetPrintedPagesCount(int cookie, int number_pages) {}
+ virtual void DidPrintPage(const ViewHostMsg_DidPrintPage_Params& params) {}
+ virtual GURL GetAlternateErrorPageURL() const;
+ virtual RendererPreferences GetRendererPrefs() const;
+ virtual WebPreferences GetWebkitPrefs();
+ virtual void OnMissingPluginStatus(int status) {}
+ virtual void OnCrashedPlugin(const FilePath& plugin_path) {}
+ virtual void OnCrashedWorker() {}
+ virtual void OnJSOutOfMemory() {}
+ virtual void ShouldClosePage(bool proceed) {}
+ virtual void OnCrossSiteResponse(int new_render_process_host_id,
+ int new_request_id) {}
+ virtual void OnCrossSiteNavigationCanceled() {}
+ virtual bool CanBlur() const { return true; }
+ virtual gfx::Rect GetRootWindowResizerRect() const { return gfx::Rect(); }
+ virtual void RendererUnresponsive(RenderViewHost* render_view_host,
+ bool is_during_unload) {}
+ virtual void RendererResponsive(RenderViewHost* render_view_host) {}
+ virtual void LoadStateChanged(const GURL& url, net::LoadState load_state) {}
+ virtual void OnDidGetApplicationInfo(
+ int32 page_id,
+ const webkit_glue::WebApplicationInfo& app_info) {}
+ virtual void OnUserGesture() {}
+ virtual bool IsExternalTabContainer() const { return false; }
+ virtual void OnFindReply(int request_id,
+ int number_of_matches,
+ const gfx::Rect& selection_rect,
+ int active_match_ordinal,
+ bool final_update) {}
+ virtual void DidInsertCSS();
// RenderViewHostDelegate::View
virtual void CreateNewWindow(int route_id,

Powered by Google App Engine
This is Rietveld 408576698