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

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

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works now Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 int error_code); 120 int error_code);
121 virtual void DidNavigate(RenderViewHost* render_view_host, 121 virtual void DidNavigate(RenderViewHost* render_view_host,
122 const ViewHostMsg_FrameNavigate_Params& params); 122 const ViewHostMsg_FrameNavigate_Params& params);
123 virtual void DidStopLoading(); 123 virtual void DidStopLoading();
124 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host); 124 virtual void DocumentAvailableInMainFrame(RenderViewHost* render_view_host);
125 virtual void DocumentOnLoadCompletedInMainFrame( 125 virtual void DocumentOnLoadCompletedInMainFrame(
126 RenderViewHost* render_view_host, 126 RenderViewHost* render_view_host,
127 int32 page_id); 127 int32 page_id);
128 128
129 // RenderViewHostDelegate implementation. 129 // RenderViewHostDelegate implementation.
130 virtual RenderViewHostDelegate::View* GetViewDelegate(); 130 virtual RenderViewHostDelegate::View* GetViewDelegate() OVERRIDE;
131 virtual WebPreferences GetWebkitPrefs(); 131 virtual WebPreferences GetWebkitPrefs() OVERRIDE;
132 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, 132 virtual void RunJavaScriptMessage(const RenderViewHost* rvh,
133 const string16& message, 133 const string16& message,
134 const string16& default_prompt, 134 const string16& default_prompt,
135 const GURL& frame_url, 135 const GURL& frame_url,
136 const int flags, 136 const int flags,
137 IPC::Message* reply_msg, 137 IPC::Message* reply_msg,
138 bool* did_suppress_message); 138 bool* did_suppress_message) OVERRIDE;
139 virtual void Close(RenderViewHost* render_view_host); 139 virtual void Close(RenderViewHost* render_view_host) OVERRIDE;
140 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; 140 virtual RendererPreferences GetRendererPrefs(
141 content::BrowserContext* context) const OVERRIDE;
141 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 142 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
142 bool* is_keyboard_shortcut); 143 bool* is_keyboard_shortcut) OVERRIDE;
143 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); 144 virtual void HandleKeyboardEvent(
144 virtual void HandleMouseMove(); 145 const NativeWebKeyboardEvent& event) OVERRIDE;
145 virtual void HandleMouseDown(); 146 virtual void HandleMouseMove() OVERRIDE;
146 virtual void HandleMouseLeave(); 147 virtual void HandleMouseDown() OVERRIDE;
147 virtual void HandleMouseUp(); 148 virtual void HandleMouseLeave() OVERRIDE;
148 virtual void HandleMouseActivate(); 149 virtual void HandleMouseUp() OVERRIDE;
150 virtual void HandleMouseActivate() OVERRIDE;
149 151
150 // RenderViewHostDelegate::View 152 // RenderViewHostDelegate::View
151 virtual void CreateNewWindow( 153 virtual void CreateNewWindow(
152 int route_id, 154 int route_id,
153 const ViewHostMsg_CreateWindow_Params& params); 155 const ViewHostMsg_CreateWindow_Params& params);
154 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); 156 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type);
155 virtual void CreateNewFullscreenWidget(int route_id); 157 virtual void CreateNewFullscreenWidget(int route_id);
156 virtual void ShowCreatedWindow(int route_id, 158 virtual void ShowCreatedWindow(int route_id,
157 WindowOpenDisposition disposition, 159 WindowOpenDisposition disposition,
158 const gfx::Rect& initial_pos, 160 const gfx::Rect& initial_pos,
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // Used to measure how long it's been since the host was created. 281 // Used to measure how long it's been since the host was created.
280 PerfTimer since_created_; 282 PerfTimer since_created_;
281 283
282 // FileSelectHelper, lazily created. 284 // FileSelectHelper, lazily created.
283 scoped_ptr<FileSelectHelper> file_select_helper_; 285 scoped_ptr<FileSelectHelper> file_select_helper_;
284 286
285 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 287 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
286 }; 288 };
287 289
288 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 290 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698