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

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 according to creis@ 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/renderer_host/render_widget_host_delegate.h" 19 #include "content/browser/renderer_host/render_widget_host_delegate.h"
19 #include "content/browser/web_contents/navigation_controller_impl.h" 20 #include "content/browser/web_contents/navigation_controller_impl.h"
20 #include "content/browser/web_contents/render_view_host_manager.h" 21 #include "content/browser/web_contents/render_view_host_manager.h"
21 #include "content/common/content_export.h" 22 #include "content/common/content_export.h"
22 #include "content/public/browser/notification_observer.h" 23 #include "content/public/browser/notification_observer.h"
23 #include "content/public/browser/notification_registrar.h" 24 #include "content/public/browser/notification_registrar.h"
24 #include "content/public/browser/render_view_host_delegate.h" 25 #include "content/public/browser/render_view_host_delegate.h"
25 #include "content/public/browser/web_contents.h" 26 #include "content/public/browser/web_contents.h"
26 #include "content/public/common/renderer_preferences.h" 27 #include "content/public/common/renderer_preferences.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 } 120 }
120 121
121 void set_opener_web_ui_type(content::WebUI::TypeID opener_web_ui_type) { 122 void set_opener_web_ui_type(content::WebUI::TypeID opener_web_ui_type) {
122 opener_web_ui_type_ = opener_web_ui_type; 123 opener_web_ui_type_ = opener_web_ui_type;
123 } 124 }
124 125
125 JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const { 126 JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const {
126 return java_bridge_dispatcher_host_manager_.get(); 127 return java_bridge_dispatcher_host_manager_.get();
127 } 128 }
128 129
130 content::BrowserPluginHost* browser_plugin_host() const {
131 return browser_plugin_host_.get();
132 }
133
129 // Like GetController from WebContents, but returns the concrete object. 134 // Like GetController from WebContents, but returns the concrete object.
130 NavigationControllerImpl& GetControllerImpl(); 135 NavigationControllerImpl& GetControllerImpl();
131 136
132 // Expose the render manager for testing. 137 // Expose the render manager for testing.
133 RenderViewHostManager* GetRenderManagerForTesting(); 138 RenderViewHostManager* GetRenderManagerForTesting();
134 139
135 // content::WebContents ------------------------------------------------------ 140 // content::WebContents ------------------------------------------------------
136 virtual const base::PropertyBag* GetPropertyBag() const OVERRIDE; 141 virtual const base::PropertyBag* GetPropertyBag() const OVERRIDE;
137 virtual base::PropertyBag* GetPropertyBag() OVERRIDE; 142 virtual base::PropertyBag* GetPropertyBag() OVERRIDE;
138 virtual content::WebContentsDelegate* GetDelegate() OVERRIDE; 143 virtual content::WebContentsDelegate* GetDelegate() OVERRIDE;
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 virtual void HandleMouseActivate() OVERRIDE; 349 virtual void HandleMouseActivate() OVERRIDE;
345 virtual void RunFileChooser( 350 virtual void RunFileChooser(
346 content::RenderViewHost* render_view_host, 351 content::RenderViewHost* render_view_host,
347 const content::FileChooserParams& params) OVERRIDE; 352 const content::FileChooserParams& params) OVERRIDE;
348 virtual void ToggleFullscreenMode(bool enter_fullscreen) OVERRIDE; 353 virtual void ToggleFullscreenMode(bool enter_fullscreen) OVERRIDE;
349 virtual bool IsFullscreenForCurrentTab() const OVERRIDE; 354 virtual bool IsFullscreenForCurrentTab() const OVERRIDE;
350 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE; 355 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE;
351 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) OVERRIDE; 356 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) OVERRIDE;
352 virtual void RequestToLockMouse(bool user_gesture) OVERRIDE; 357 virtual void RequestToLockMouse(bool user_gesture) OVERRIDE;
353 virtual void LostMouseLock() OVERRIDE; 358 virtual void LostMouseLock() OVERRIDE;
359 virtual void NavigateGuestFromEmbedder(
360 content::RenderViewHost* render_view_host,
361 int container_instance_id,
362 long long frame_id,
363 const std::string& src,
364 const gfx::Size& size) OVERRIDE;
354 365
355 // RenderWidgetHostDelegate -------------------------------------------------- 366 // RenderWidgetHostDelegate --------------------------------------------------
356 367
357 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 368 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
358 bool* is_keyboard_shortcut) OVERRIDE; 369 bool* is_keyboard_shortcut) OVERRIDE;
359 virtual void HandleKeyboardEvent( 370 virtual void HandleKeyboardEvent(
360 const NativeWebKeyboardEvent& event) OVERRIDE; 371 const NativeWebKeyboardEvent& event) OVERRIDE;
361 372
362 // RenderViewHostManager::Delegate ------------------------------------------- 373 // RenderViewHostManager::Delegate -------------------------------------------
363 374
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 // Helper classes ------------------------------------------------------------ 603 // Helper classes ------------------------------------------------------------
593 604
594 // Manages creation and swapping of render views. 605 // Manages creation and swapping of render views.
595 RenderViewHostManager render_manager_; 606 RenderViewHostManager render_manager_;
596 607
597 // Manages injecting Java objects into all RenderViewHosts associated with 608 // Manages injecting Java objects into all RenderViewHosts associated with
598 // this WebContentsImpl. 609 // this WebContentsImpl.
599 scoped_ptr<JavaBridgeDispatcherHostManager> 610 scoped_ptr<JavaBridgeDispatcherHostManager>
600 java_bridge_dispatcher_host_manager_; 611 java_bridge_dispatcher_host_manager_;
601 612
613 // Manages the browser plugin instances hosted by this WebContents.
614 scoped_ptr<content::BrowserPluginHost> browser_plugin_host_;
615
602 // SavePackage, lazily created. 616 // SavePackage, lazily created.
603 scoped_refptr<SavePackage> save_package_; 617 scoped_refptr<SavePackage> save_package_;
604 618
605 // Data for loading state ---------------------------------------------------- 619 // Data for loading state ----------------------------------------------------
606 620
607 // Indicates whether we're currently loading a resource. 621 // Indicates whether we're currently loading a resource.
608 bool is_loading_; 622 bool is_loading_;
609 623
610 // Indicates if the tab is considered crashed. 624 // Indicates if the tab is considered crashed.
611 base::TerminationStatus crashed_status_; 625 base::TerminationStatus crashed_status_;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 // Type of view this WebContents is displaying. 728 // Type of view this WebContents is displaying.
715 content::ViewType view_type_; 729 content::ViewType view_type_;
716 730
717 // Color chooser that was opened by this tab. 731 // Color chooser that was opened by this tab.
718 content::ColorChooser* color_chooser_; 732 content::ColorChooser* color_chooser_;
719 733
720 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 734 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
721 }; 735 };
722 736
723 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 737 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698