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

Side by Side Diff: chrome/browser/extensions/extension_host.h

Issue 159202: add mole info to toolstrip definition and enable moles (Closed)
Patch Set: ready for review Created 11 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 bool did_stop_loading() const { return did_stop_loading_; } 54 bool did_stop_loading() const { return did_stop_loading_; }
55 55
56 // Returns true if the render view is initialized and didn't crash. 56 // Returns true if the render view is initialized and didn't crash.
57 bool IsRenderViewLive() const; 57 bool IsRenderViewLive() const;
58 58
59 // Initializes our RenderViewHost by creating its RenderView and navigating 59 // Initializes our RenderViewHost by creating its RenderView and navigating
60 // to this host's url. Uses host_view for the RenderViewHost's view (can be 60 // to this host's url. Uses host_view for the RenderViewHost's view (can be
61 // NULL). 61 // NULL).
62 void CreateRenderView(RenderWidgetHostView* host_view); 62 void CreateRenderView(RenderWidgetHostView* host_view);
63 63
64 // Sets |url_| and navigates |render_view_host_|.
65 void NavigateToURL(const GURL& url);
66
64 // Restarts extension's renderer process. Can be called only if the renderer 67 // Restarts extension's renderer process. Can be called only if the renderer
65 // process crashed. 68 // process crashed.
66 void RecoverCrashedExtension(); 69 void RecoverCrashedExtension();
67 70
68 // RenderViewHostDelegate implementation. 71 // RenderViewHostDelegate implementation.
69 virtual RenderViewHostDelegate::View* GetViewDelegate(); 72 virtual RenderViewHostDelegate::View* GetViewDelegate();
70 virtual const GURL& GetURL() const { return url_; } 73 virtual const GURL& GetURL() const { return url_; }
71 virtual void RenderViewCreated(RenderViewHost* render_view_host); 74 virtual void RenderViewCreated(RenderViewHost* render_view_host);
72 virtual void RenderViewGone(RenderViewHost* render_view_host); 75 virtual void RenderViewGone(RenderViewHost* render_view_host);
76 virtual void DidNavigate(RenderViewHost* render_view_host,
77 const ViewHostMsg_FrameNavigate_Params& params);
73 virtual void DidStopLoading(RenderViewHost* render_view_host); 78 virtual void DidStopLoading(RenderViewHost* render_view_host);
74 virtual WebPreferences GetWebkitPrefs(); 79 virtual WebPreferences GetWebkitPrefs();
75 virtual void ProcessDOMUIMessage(const std::string& message, 80 virtual void ProcessDOMUIMessage(const std::string& message,
76 const std::string& content, 81 const std::string& content,
77 int request_id, 82 int request_id,
78 bool has_callback); 83 bool has_callback);
79 virtual void RunJavaScriptMessage(const std::wstring& message, 84 virtual void RunJavaScriptMessage(const std::wstring& message,
80 const std::wstring& default_prompt, 85 const std::wstring& default_prompt,
81 const GURL& frame_url, 86 const GURL& frame_url,
82 const int flags, 87 const int flags,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 143
139 // The URL being hosted. 144 // The URL being hosted.
140 GURL url_; 145 GURL url_;
141 146
142 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; 147 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_;
143 148
144 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 149 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
145 }; 150 };
146 151
147 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 152 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_host.cc » ('j') | chrome/browser/extensions/extension_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698