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

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

Issue 10392072: Pass the render view host with all provisional load related callbacks on the web contents observer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTERNAL_TAB_CONTAINER_WIN_H_ 5 #ifndef CHROME_BROWSER_EXTERNAL_TAB_EXTERNAL_TAB_CONTAINER_WIN_H_
6 #define CHROME_BROWSER_EXTERNAL_TAB_EXTERNAL_TAB_CONTAINER_WIN_H_ 6 #define CHROME_BROWSER_EXTERNAL_TAB_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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 void RegisterRenderViewHost(content::RenderViewHost* render_view_host); 195 void RegisterRenderViewHost(content::RenderViewHost* render_view_host);
196 void UnregisterRenderViewHost(content::RenderViewHost* render_view_host); 196 void UnregisterRenderViewHost(content::RenderViewHost* render_view_host);
197 197
198 // Overridden from content::WebContentsObserver: 198 // Overridden from content::WebContentsObserver:
199 virtual bool OnMessageReceived(const IPC::Message& message); 199 virtual bool OnMessageReceived(const IPC::Message& message);
200 virtual void DidFailProvisionalLoad( 200 virtual void DidFailProvisionalLoad(
201 int64 frame_id, 201 int64 frame_id,
202 bool is_main_frame, 202 bool is_main_frame,
203 const GURL& validated_url, 203 const GURL& validated_url,
204 int error_code, 204 int error_code,
205 const string16& error_description) OVERRIDE; 205 const string16& error_description,
206 content::RenderViewHost* render_view_host) OVERRIDE;
206 207
207 // Message handlers 208 // Message handlers
208 void OnForwardMessageToExternalHost(const std::string& message, 209 void OnForwardMessageToExternalHost(const std::string& message,
209 const std::string& origin, 210 const std::string& origin,
210 const std::string& target); 211 const std::string& target);
211 212
212 // Overridden from content::NotificationObserver: 213 // Overridden from content::NotificationObserver:
213 virtual void Observe(int type, 214 virtual void Observe(int type,
214 const content::NotificationSource& source, 215 const content::NotificationSource& source,
215 const content::NotificationDetails& details); 216 const content::NotificationDetails& details);
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 return false; 419 return false;
419 } 420 }
420 421
421 virtual void BeforeUnloadFired(content::WebContents* tab, bool proceed, 422 virtual void BeforeUnloadFired(content::WebContents* tab, bool proceed,
422 bool* proceed_to_fire_unload) { 423 bool* proceed_to_fire_unload) {
423 NOTREACHED(); 424 NOTREACHED();
424 } 425 }
425 }; 426 };
426 427
427 #endif // CHROME_BROWSER_EXTERNAL_TAB_EXTERNAL_TAB_CONTAINER_WIN_H_ 428 #endif // CHROME_BROWSER_EXTERNAL_TAB_EXTERNAL_TAB_CONTAINER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698