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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_host.h

Issue 10544143: Browser Plugin: Plumbing to enable tabbing out of a browser tag (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 6 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
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_H__ 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_H__
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_H__ 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_H__
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 RenderProcessHost* embedder_render_process_host) { 81 RenderProcessHost* embedder_render_process_host) {
82 embedder_render_process_host_ = embedder_render_process_host; 82 embedder_render_process_host_ = embedder_render_process_host;
83 } 83 }
84 void set_instance_id(int instance_id) { instance_id_ = instance_id; } 84 void set_instance_id(int instance_id) { instance_id_ = instance_id; }
85 85
86 void OnNavigateFromGuest(PP_Instance instance, 86 void OnNavigateFromGuest(PP_Instance instance,
87 const std::string& src); 87 const std::string& src);
88 88
89 void DestroyGuests(); 89 void DestroyGuests();
90 90
91 // WebContentsDelegate implementation.
92 virtual bool TakeFocus(bool reverse) OVERRIDE;
93
91 // WebContentObserver implementation. 94 // WebContentObserver implementation.
92 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 95 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
93 // Used to monitor frame navigation to cleanup guests when a frame navigates 96 // Used to monitor frame navigation to cleanup guests when a frame navigates
94 // away from the browser plugin it's hosting. 97 // away from the browser plugin it's hosting.
95 virtual void DidCommitProvisionalLoadForFrame( 98 virtual void DidCommitProvisionalLoadForFrame(
96 int64 frame_id, 99 int64 frame_id,
97 bool is_main_frame, 100 bool is_main_frame,
98 const GURL& url, 101 const GURL& url,
99 PageTransition transition_type, 102 PageTransition transition_type,
100 RenderViewHost* render_view_host) OVERRIDE; 103 RenderViewHost* render_view_host) OVERRIDE;
101 virtual void RenderViewDeleted(RenderViewHost* render_view_host) OVERRIDE; 104 virtual void RenderViewDeleted(RenderViewHost* render_view_host) OVERRIDE;
102 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; 105 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE;
103 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE; 106 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE;
104 107
105 // NotificationObserver method override. 108 // NotificationObserver method override.
106 virtual void Observe(int type, 109 virtual void Observe(int type,
107 const NotificationSource& source, 110 const NotificationSource& source,
108 const NotificationDetails& details) OVERRIDE; 111 const NotificationDetails& details) OVERRIDE;
109 112
110 // A scoped container for notification registries. 113 // A scoped container for notification registries.
111 NotificationRegistrar registrar_; 114 NotificationRegistrar registrar_;
112 RenderProcessHost* embedder_render_process_host_; 115 RenderProcessHost* embedder_render_process_host_;
113 std::string embedder_channel_name_; 116 std::string embedder_channel_name_;
114 // An identifier that uniquely identifies a browser plugin container 117 // An identifier that uniquely identifies a browser plugin container
115 // within an embedder. 118 // within an embedder.
116 int instance_id_; 119 int instance_id_;
117 gfx::Size initial_size_; 120 gfx::Size initial_size_;
118 GuestMap guests_; 121 GuestMap guests_;
119 ContainerInstanceMap guests_by_container_id_; 122 ContainerInstanceMap guests_by_container_id_;
120 }; 123 };
jochen (gone - plz use gerrit) 2012/06/14 00:00:41 shouldn't this class disallow copy and assign?
Fady Samuel 2012/06/14 01:40:49 You're absolutely right, fixed!
121 124
122 } // namespace content 125 } // namespace content
123 126
124 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_H_ 127 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698