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

Side by Side Diff: chrome/browser/external_tab_container_win.h

Issue 7745027: Dispatch the following IPC messages in TabContents and handle them via the TabContentsDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/external_tab_container_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_EXTERNAL_TAB_CONTAINER_WIN_H_ 5 #ifndef CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_
6 #define CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ 6 #define CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 virtual bool ExecuteContextMenuCommand(int command); 153 virtual bool ExecuteContextMenuCommand(int command);
154 virtual void BeforeUnloadFired(TabContents* tab, 154 virtual void BeforeUnloadFired(TabContents* tab,
155 bool proceed, 155 bool proceed,
156 bool* proceed_to_fire_unload); 156 bool* proceed_to_fire_unload);
157 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator(); 157 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator();
158 virtual void ShowRepostFormWarningDialog(TabContents* tab_contents); 158 virtual void ShowRepostFormWarningDialog(TabContents* tab_contents);
159 virtual void RunFileChooser(TabContents* tab, 159 virtual void RunFileChooser(TabContents* tab,
160 const ViewHostMsg_RunFileChooser_Params& params); 160 const ViewHostMsg_RunFileChooser_Params& params);
161 virtual void EnumerateDirectory(TabContents* tab, int request_id, 161 virtual void EnumerateDirectory(TabContents* tab, int request_id,
162 const FilePath& path); 162 const FilePath& path);
163 virtual void JSOutOfMemory(TabContents* tab);
164 virtual void RegisterProtocolHandler(TabContents* tab,
165 const std::string& protocol,
166 const GURL& url,
167 const string16& title);
168 virtual void RegisterIntentHandler(TabContents* tab,
169 const string16& action,
170 const string16& type,
171 const string16& href,
172 const string16& title);
173 virtual void WebIntentDispatch(TabContents* tab,
174 int routing_id,
175 const string16& action,
176 const string16& type,
177 const string16& data,
178 int intent_id);
163 179
164 void RegisterRenderViewHost(RenderViewHost* render_view_host); 180 void RegisterRenderViewHost(RenderViewHost* render_view_host);
165 void UnregisterRenderViewHost(RenderViewHost* render_view_host); 181 void UnregisterRenderViewHost(RenderViewHost* render_view_host);
166 182
167 // Overridden from TabContentsObserver: 183 // Overridden from TabContentsObserver:
168 // IPC::Channel::Listener implementation. 184 // IPC::Channel::Listener implementation.
169 virtual bool OnMessageReceived(const IPC::Message& message); 185 virtual bool OnMessageReceived(const IPC::Message& message);
170 186
171 // Message handlers 187 // Message handlers
172 void OnForwardMessageToExternalHost(const std::string& message, 188 void OnForwardMessageToExternalHost(const std::string& message,
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 return false; 405 return false;
390 } 406 }
391 407
392 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, 408 virtual void BeforeUnloadFired(TabContents* tab, bool proceed,
393 bool* proceed_to_fire_unload) { 409 bool* proceed_to_fire_unload) {
394 NOTREACHED(); 410 NOTREACHED();
395 } 411 }
396 }; 412 };
397 413
398 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ 414 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/external_tab_container_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698