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

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

Issue 9924026: Browser side implementation of browser plugin (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed comments in browser_plugin_messages.h Created 8 years, 8 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_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_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"
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/tab_contents/navigation_controller_impl.h" 19 #include "content/browser/tab_contents/navigation_controller_impl.h"
19 #include "content/browser/tab_contents/render_view_host_manager.h" 20 #include "content/browser/tab_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/render_view_host_delegate.h" 22 #include "content/public/browser/render_view_host_delegate.h"
22 #include "content/public/browser/web_contents.h" 23 #include "content/public/browser/web_contents.h"
23 #include "content/public/common/renderer_preferences.h" 24 #include "content/public/common/renderer_preferences.h"
24 #include "net/base/load_states.h" 25 #include "net/base/load_states.h"
25 #include "ui/gfx/size.h" 26 #include "ui/gfx/size.h"
26 #include "webkit/glue/resource_type.h" 27 #include "webkit/glue/resource_type.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 118 }
118 119
119 void set_has_opener(bool has_opener) { 120 void set_has_opener(bool has_opener) {
120 has_opener_ = has_opener; 121 has_opener_ = has_opener;
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::BrowserPluginWebContentsObserver*
129 browser_plugin_web_contents_observer() const {
130 return browser_plugin_web_contents_observer_.get();
131 }
132
127 // Like GetController from WebContents, but returns the concrete object. 133 // Like GetController from WebContents, but returns the concrete object.
128 NavigationControllerImpl& GetControllerImpl(); 134 NavigationControllerImpl& GetControllerImpl();
129 135
130 // Expose the render manager for testing. 136 // Expose the render manager for testing.
131 RenderViewHostManager* GetRenderManagerForTesting(); 137 RenderViewHostManager* GetRenderManagerForTesting();
132 138
133 // content::WebContents ------------------------------------------------------ 139 // content::WebContents ------------------------------------------------------
134 virtual const base::PropertyBag* GetPropertyBag() const OVERRIDE; 140 virtual const base::PropertyBag* GetPropertyBag() const OVERRIDE;
135 virtual base::PropertyBag* GetPropertyBag() OVERRIDE; 141 virtual base::PropertyBag* GetPropertyBag() OVERRIDE;
136 virtual content::WebContentsDelegate* GetDelegate() OVERRIDE; 142 virtual content::WebContentsDelegate* GetDelegate() OVERRIDE;
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 // Helper classes ------------------------------------------------------------ 559 // Helper classes ------------------------------------------------------------
554 560
555 // Manages creation and swapping of render views. 561 // Manages creation and swapping of render views.
556 RenderViewHostManager render_manager_; 562 RenderViewHostManager render_manager_;
557 563
558 // Manages injecting Java objects into all RenderViewHosts associated with 564 // Manages injecting Java objects into all RenderViewHosts associated with
559 // this TabContents. 565 // this TabContents.
560 scoped_ptr<JavaBridgeDispatcherHostManager> 566 scoped_ptr<JavaBridgeDispatcherHostManager>
561 java_bridge_dispatcher_host_manager_; 567 java_bridge_dispatcher_host_manager_;
562 568
569 scoped_ptr<content::BrowserPluginWebContentsObserver>
570 browser_plugin_web_contents_observer_;
563 // SavePackage, lazily created. 571 // SavePackage, lazily created.
564 scoped_refptr<SavePackage> save_package_; 572 scoped_refptr<SavePackage> save_package_;
565 573
566 // Data for loading state ---------------------------------------------------- 574 // Data for loading state ----------------------------------------------------
567 575
568 // Indicates whether we're currently loading a resource. 576 // Indicates whether we're currently loading a resource.
569 bool is_loading_; 577 bool is_loading_;
570 578
571 // Indicates if the tab is considered crashed. 579 // Indicates if the tab is considered crashed.
572 base::TerminationStatus crashed_status_; 580 base::TerminationStatus crashed_status_;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 // Is there an opener associated with this? 687 // Is there an opener associated with this?
680 bool has_opener_; 688 bool has_opener_;
681 689
682 // Color chooser that was opened by this tab. 690 // Color chooser that was opened by this tab.
683 content::ColorChooser* color_chooser_; 691 content::ColorChooser* color_chooser_;
684 692
685 DISALLOW_COPY_AND_ASSIGN(TabContents); 693 DISALLOW_COPY_AND_ASSIGN(TabContents);
686 }; 694 };
687 695
688 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 696 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698