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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 10378089: Browser Plugin: Removed BrowserPluginWebContentsObserver (to be replaced by rewritten BrowserPlugi… (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Yet another unit test fixed 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "base/property_bag.h" 16 #include "base/property_bag.h"
17 #include "content/browser/browser_plugin/browser_plugin_web_contents_observer.h"
18 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager .h" 17 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager .h"
19 #include "content/browser/web_contents/navigation_controller_impl.h" 18 #include "content/browser/web_contents/navigation_controller_impl.h"
20 #include "content/browser/web_contents/render_view_host_manager.h" 19 #include "content/browser/web_contents/render_view_host_manager.h"
21 #include "content/common/content_export.h" 20 #include "content/common/content_export.h"
22 #include "content/public/browser/notification_observer.h" 21 #include "content/public/browser/notification_observer.h"
23 #include "content/public/browser/notification_registrar.h" 22 #include "content/public/browser/notification_registrar.h"
24 #include "content/public/browser/render_view_host_delegate.h" 23 #include "content/public/browser/render_view_host_delegate.h"
25 #include "content/public/browser/web_contents.h" 24 #include "content/public/browser/web_contents.h"
26 #include "content/public/common/renderer_preferences.h" 25 #include "content/public/common/renderer_preferences.h"
27 #include "net/base/load_states.h" 26 #include "net/base/load_states.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 } 117 }
119 118
120 void set_opener_web_ui_type(content::WebUI::TypeID opener_web_ui_type) { 119 void set_opener_web_ui_type(content::WebUI::TypeID opener_web_ui_type) {
121 opener_web_ui_type_ = opener_web_ui_type; 120 opener_web_ui_type_ = opener_web_ui_type;
122 } 121 }
123 122
124 JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const { 123 JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const {
125 return java_bridge_dispatcher_host_manager_.get(); 124 return java_bridge_dispatcher_host_manager_.get();
126 } 125 }
127 126
128 content::BrowserPluginWebContentsObserver*
129 browser_plugin_web_contents_observer() const {
130 return browser_plugin_web_contents_observer_.get();
131 }
132
133 // Like GetController from WebContents, but returns the concrete object. 127 // Like GetController from WebContents, but returns the concrete object.
134 NavigationControllerImpl& GetControllerImpl(); 128 NavigationControllerImpl& GetControllerImpl();
135 129
136 // Expose the render manager for testing. 130 // Expose the render manager for testing.
137 RenderViewHostManager* GetRenderManagerForTesting(); 131 RenderViewHostManager* GetRenderManagerForTesting();
138 132
139 // content::WebContents ------------------------------------------------------ 133 // content::WebContents ------------------------------------------------------
140 virtual const base::PropertyBag* GetPropertyBag() const OVERRIDE; 134 virtual const base::PropertyBag* GetPropertyBag() const OVERRIDE;
141 virtual base::PropertyBag* GetPropertyBag() OVERRIDE; 135 virtual base::PropertyBag* GetPropertyBag() OVERRIDE;
142 virtual content::WebContentsDelegate* GetDelegate() OVERRIDE; 136 virtual content::WebContentsDelegate* GetDelegate() OVERRIDE;
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 // Helper classes ------------------------------------------------------------ 585 // Helper classes ------------------------------------------------------------
592 586
593 // Manages creation and swapping of render views. 587 // Manages creation and swapping of render views.
594 RenderViewHostManager render_manager_; 588 RenderViewHostManager render_manager_;
595 589
596 // Manages injecting Java objects into all RenderViewHosts associated with 590 // Manages injecting Java objects into all RenderViewHosts associated with
597 // this WebContentsImpl. 591 // this WebContentsImpl.
598 scoped_ptr<JavaBridgeDispatcherHostManager> 592 scoped_ptr<JavaBridgeDispatcherHostManager>
599 java_bridge_dispatcher_host_manager_; 593 java_bridge_dispatcher_host_manager_;
600 594
601 scoped_ptr<content::BrowserPluginWebContentsObserver>
602 browser_plugin_web_contents_observer_;
603 // SavePackage, lazily created. 595 // SavePackage, lazily created.
604 scoped_refptr<SavePackage> save_package_; 596 scoped_refptr<SavePackage> save_package_;
605 597
606 // Data for loading state ---------------------------------------------------- 598 // Data for loading state ----------------------------------------------------
607 599
608 // Indicates whether we're currently loading a resource. 600 // Indicates whether we're currently loading a resource.
609 bool is_loading_; 601 bool is_loading_;
610 602
611 // Indicates if the tab is considered crashed. 603 // Indicates if the tab is considered crashed.
612 base::TerminationStatus crashed_status_; 604 base::TerminationStatus crashed_status_;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 // Type of view this WebContents is displaying. 707 // Type of view this WebContents is displaying.
716 content::ViewType view_type_; 708 content::ViewType view_type_;
717 709
718 // Color chooser that was opened by this tab. 710 // Color chooser that was opened by this tab.
719 content::ColorChooser* color_chooser_; 711 content::ColorChooser* color_chooser_;
720 712
721 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 713 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
722 }; 714 };
723 715
724 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 716 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/test_web_contents.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698