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

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

Issue 10837112: Add WebContents* to some more WebContentsDelegate methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 4 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_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_H__ 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_H__
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_H__ 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_H__
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 embedder_render_process_host_ = embedder_render_process_host; 89 embedder_render_process_host_ = embedder_render_process_host;
90 } 90 }
91 void set_instance_id(int instance_id) { instance_id_ = instance_id; } 91 void set_instance_id(int instance_id) { instance_id_ = instance_id; }
92 92
93 void OnNavigateFromGuest(PP_Instance instance, 93 void OnNavigateFromGuest(PP_Instance instance,
94 const std::string& src); 94 const std::string& src);
95 95
96 void DestroyGuests(); 96 void DestroyGuests();
97 97
98 // WebContentsDelegate implementation. 98 // WebContentsDelegate implementation.
99 virtual bool TakeFocus(bool reverse) OVERRIDE; 99 virtual bool TakeFocus(WebContents* web_contents, bool reverse) OVERRIDE;
100 100
101 // WebContentObserver implementation. 101 // WebContentObserver implementation.
102 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 102 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
103 // Used to monitor frame navigation to cleanup guests when a frame navigates 103 // Used to monitor frame navigation to cleanup guests when a frame navigates
104 // away from the browser plugin it's hosting. 104 // away from the browser plugin it's hosting.
105 virtual void DidCommitProvisionalLoadForFrame( 105 virtual void DidCommitProvisionalLoadForFrame(
106 int64 frame_id, 106 int64 frame_id,
107 bool is_main_frame, 107 bool is_main_frame,
108 const GURL& url, 108 const GURL& url,
109 PageTransition transition_type, 109 PageTransition transition_type,
(...skipping 17 matching lines...) Expand all
127 GuestMap guests_; 127 GuestMap guests_;
128 ContainerInstanceMap guests_by_container_id_; 128 ContainerInstanceMap guests_by_container_id_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(BrowserPluginHost); 130 DISALLOW_COPY_AND_ASSIGN(BrowserPluginHost);
131 }; 131 };
132 132
133 } // namespace old 133 } // namespace old
134 } // namespace content 134 } // namespace content
135 135
136 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_H_ 136 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_OLD_BROWSER_PLUGIN_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698