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

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

Issue 10377170: Browser Plugin: browser process side changes (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated to not expose GetPendingRenderViewHost 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_host.h"
17 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager .h" 18 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager .h"
18 #include "content/browser/web_contents/navigation_controller_impl.h" 19 #include "content/browser/web_contents/navigation_controller_impl.h"
19 #include "content/browser/web_contents/render_view_host_manager.h" 20 #include "content/browser/web_contents/render_view_host_manager.h"
20 #include "content/common/content_export.h" 21 #include "content/common/content_export.h"
21 #include "content/public/browser/notification_observer.h" 22 #include "content/public/browser/notification_observer.h"
22 #include "content/public/browser/notification_registrar.h" 23 #include "content/public/browser/notification_registrar.h"
23 #include "content/public/browser/render_view_host_delegate.h" 24 #include "content/public/browser/render_view_host_delegate.h"
24 #include "content/public/browser/web_contents.h" 25 #include "content/public/browser/web_contents.h"
25 #include "content/public/common/renderer_preferences.h" 26 #include "content/public/common/renderer_preferences.h"
26 #include "net/base/load_states.h" 27 #include "net/base/load_states.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 118 }
118 119
119 void set_opener_web_ui_type(content::WebUI::TypeID opener_web_ui_type) { 120 void set_opener_web_ui_type(content::WebUI::TypeID opener_web_ui_type) {
120 opener_web_ui_type_ = opener_web_ui_type; 121 opener_web_ui_type_ = opener_web_ui_type;
121 } 122 }
122 123
123 JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const { 124 JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const {
124 return java_bridge_dispatcher_host_manager_.get(); 125 return java_bridge_dispatcher_host_manager_.get();
125 } 126 }
126 127
128 content::BrowserPluginHost* browser_plugin_host() const {
129 return browser_plugin_host_.get();
130 }
131
127 // Like GetController from WebContents, but returns the concrete object. 132 // Like GetController from WebContents, but returns the concrete object.
128 NavigationControllerImpl& GetControllerImpl(); 133 NavigationControllerImpl& GetControllerImpl();
129 134
130 // Expose the render manager for testing. 135 // Expose the render manager for testing.
131 RenderViewHostManager* GetRenderManagerForTesting(); 136 RenderViewHostManager* GetRenderManagerForTesting();
132 137
133 // content::WebContents ------------------------------------------------------ 138 // content::WebContents ------------------------------------------------------
134 virtual const base::PropertyBag* GetPropertyBag() const OVERRIDE; 139 virtual const base::PropertyBag* GetPropertyBag() const OVERRIDE;
135 virtual base::PropertyBag* GetPropertyBag() OVERRIDE; 140 virtual base::PropertyBag* GetPropertyBag() OVERRIDE;
136 virtual content::WebContentsDelegate* GetDelegate() OVERRIDE; 141 virtual content::WebContentsDelegate* GetDelegate() OVERRIDE;
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 // Helper classes ------------------------------------------------------------ 592 // Helper classes ------------------------------------------------------------
588 593
589 // Manages creation and swapping of render views. 594 // Manages creation and swapping of render views.
590 RenderViewHostManager render_manager_; 595 RenderViewHostManager render_manager_;
591 596
592 // Manages injecting Java objects into all RenderViewHosts associated with 597 // Manages injecting Java objects into all RenderViewHosts associated with
593 // this WebContentsImpl. 598 // this WebContentsImpl.
594 scoped_ptr<JavaBridgeDispatcherHostManager> 599 scoped_ptr<JavaBridgeDispatcherHostManager>
595 java_bridge_dispatcher_host_manager_; 600 java_bridge_dispatcher_host_manager_;
596 601
602 // Manages the browser plugin instances hosted by this WebContents
Charlie Reis 2012/05/17 21:24:05 nit: End with a period.
Fady Samuel 2012/05/18 17:37:52 Done.
603 scoped_ptr<content::BrowserPluginHost> browser_plugin_host_;
604
597 // SavePackage, lazily created. 605 // SavePackage, lazily created.
598 scoped_refptr<SavePackage> save_package_; 606 scoped_refptr<SavePackage> save_package_;
599 607
600 // Data for loading state ---------------------------------------------------- 608 // Data for loading state ----------------------------------------------------
601 609
602 // Indicates whether we're currently loading a resource. 610 // Indicates whether we're currently loading a resource.
603 bool is_loading_; 611 bool is_loading_;
604 612
605 // Indicates if the tab is considered crashed. 613 // Indicates if the tab is considered crashed.
606 base::TerminationStatus crashed_status_; 614 base::TerminationStatus crashed_status_;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 // Type of view this WebContents is displaying. 717 // Type of view this WebContents is displaying.
710 content::ViewType view_type_; 718 content::ViewType view_type_;
711 719
712 // Color chooser that was opened by this tab. 720 // Color chooser that was opened by this tab.
713 content::ColorChooser* color_chooser_; 721 content::ColorChooser* color_chooser_;
714 722
715 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 723 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
716 }; 724 };
717 725
718 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 726 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698