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

Side by Side Diff: content/browser/tab_contents/render_view_host_manager.h

Issue 7800015: prune down content_dll change to just the CONTENT_EXPORTS (Closed)
Patch Set: update copyright headers, merge Created 9 years, 3 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) 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 CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "content/browser/renderer_host/render_view_host_delegate.h" 12 #include "content/browser/renderer_host/render_view_host_delegate.h"
13 #include "content/common/content_export.h"
13 #include "content/common/notification_observer.h" 14 #include "content/common/notification_observer.h"
14 #include "content/common/notification_registrar.h" 15 #include "content/common/notification_registrar.h"
15 #include "content/browser/site_instance.h" 16 #include "content/browser/site_instance.h"
16 17
17 class InterstitialPage; 18 class InterstitialPage;
18 class NavigationController; 19 class NavigationController;
19 class NavigationEntry; 20 class NavigationEntry;
20 class RenderViewHost; 21 class RenderViewHost;
21 class RenderWidgetHostView; 22 class RenderWidgetHostView;
22 class WebUI; 23 class WebUI;
(...skipping 11 matching lines...) Expand all
34 public: 35 public:
35 // Functions implemented by our owner that we need. 36 // Functions implemented by our owner that we need.
36 // 37 //
37 // TODO(brettw) Clean this up! These are all the functions in TabContents that 38 // TODO(brettw) Clean this up! These are all the functions in TabContents that
38 // are required to run this class. The design should probably be better such 39 // are required to run this class. The design should probably be better such
39 // that these are more clear. 40 // that these are more clear.
40 // 41 //
41 // There is additional complexity that some of the functions we need in 42 // There is additional complexity that some of the functions we need in
42 // TabContents are inherited and non-virtual. These are named with 43 // TabContents are inherited and non-virtual. These are named with
43 // "RenderManager" so that the duplicate implementation of them will be clear. 44 // "RenderManager" so that the duplicate implementation of them will be clear.
44 class Delegate { 45 class CONTENT_EXPORT Delegate {
45 public: 46 public:
46 // See tab_contents.h's implementation for more. 47 // See tab_contents.h's implementation for more.
47 virtual bool CreateRenderViewForRenderManager( 48 virtual bool CreateRenderViewForRenderManager(
48 RenderViewHost* render_view_host) = 0; 49 RenderViewHost* render_view_host) = 0;
49 virtual void BeforeUnloadFiredFromRenderManager( 50 virtual void BeforeUnloadFiredFromRenderManager(
50 bool proceed, bool* proceed_to_fire_unload) = 0; 51 bool proceed, bool* proceed_to_fire_unload) = 0;
51 virtual void DidStartLoadingFromRenderManager( 52 virtual void DidStartLoadingFromRenderManager(
52 RenderViewHost* render_view_host) = 0; 53 RenderViewHost* render_view_host) = 0;
53 virtual void RenderViewGoneFromRenderManager( 54 virtual void RenderViewGoneFromRenderManager(
54 RenderViewHost* render_view_host) = 0; 55 RenderViewHost* render_view_host) = 0;
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 }; 287 };
287 288
288 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old 289 // The "details" for a NOTIFY_RENDER_VIEW_HOST_CHANGED notification. The old
289 // host can be NULL when the first RenderViewHost is set. 290 // host can be NULL when the first RenderViewHost is set.
290 struct RenderViewHostSwitchedDetails { 291 struct RenderViewHostSwitchedDetails {
291 RenderViewHost* old_host; 292 RenderViewHost* old_host;
292 RenderViewHost* new_host; 293 RenderViewHost* new_host;
293 }; 294 };
294 295
295 #endif // CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_ 296 #endif // CONTENT_BROWSER_TAB_CONTENTS_RENDER_VIEW_HOST_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698