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

Side by Side Diff: chrome/browser/guest_view/guest_view_manager.h

Issue 411253009: Remove obsolete GuestWebContentsObserver reference (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ 5 #ifndef CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_
6 #define CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ 6 #define CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "content/public/browser/browser_plugin_guest_manager.h" 13 #include "content/public/browser/browser_plugin_guest_manager.h"
14 #include "content/public/browser/site_instance.h" 14 #include "content/public/browser/site_instance.h"
15 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
16 16
17 class AppViewGuest; 17 class AppViewGuest;
18 class GuestViewBase; 18 class GuestViewBase;
19 class GuestViewManagerFactory; 19 class GuestViewManagerFactory;
20 class GuestWebContentsObserver;
21 class GURL; 20 class GURL;
22 21
23 namespace content { 22 namespace content {
24 class BrowserContext; 23 class BrowserContext;
25 } // namespace content 24 } // namespace content
26 25
27 namespace guestview { 26 namespace guestview {
28 class TestGuestViewManager; 27 class TestGuestViewManager;
29 } // namespace guestview 28 } // namespace guestview
30 29
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 virtual void MaybeGetGuestByInstanceIDOrKill( 73 virtual void MaybeGetGuestByInstanceIDOrKill(
75 int guest_instance_id, 74 int guest_instance_id,
76 int embedder_render_process_id, 75 int embedder_render_process_id,
77 const GuestByInstanceIDCallback& callback) OVERRIDE; 76 const GuestByInstanceIDCallback& callback) OVERRIDE;
78 virtual bool ForEachGuest(content::WebContents* embedder_web_contents, 77 virtual bool ForEachGuest(content::WebContents* embedder_web_contents,
79 const GuestCallback& callback) OVERRIDE; 78 const GuestCallback& callback) OVERRIDE;
80 79
81 protected: 80 protected:
82 friend class AppViewGuest; 81 friend class AppViewGuest;
83 friend class GuestViewBase; 82 friend class GuestViewBase;
84 friend class GuestWebContentsObserver;
85 friend class guestview::TestGuestViewManager; 83 friend class guestview::TestGuestViewManager;
86 FRIEND_TEST_ALL_PREFIXES(GuestViewManagerTest, AddRemove); 84 FRIEND_TEST_ALL_PREFIXES(GuestViewManagerTest, AddRemove);
87 85
88 // Can be overriden in tests. 86 // Can be overriden in tests.
89 virtual void AddGuest(int guest_instance_id, 87 virtual void AddGuest(int guest_instance_id,
90 content::WebContents* guest_web_contents); 88 content::WebContents* guest_web_contents);
91 89
92 void RemoveGuest(int guest_instance_id); 90 void RemoveGuest(int guest_instance_id);
93 91
94 content::WebContents* GetGuestByInstanceID(int guest_instance_id); 92 content::WebContents* GetGuestByInstanceID(int guest_instance_id);
(...skipping 28 matching lines...) Expand all
123 // The remaining instance IDs that are greater than 121 // The remaining instance IDs that are greater than
124 // |last_instance_id_removed_| are kept here. 122 // |last_instance_id_removed_| are kept here.
125 std::set<int> removed_instance_ids_; 123 std::set<int> removed_instance_ids_;
126 124
127 content::BrowserContext* context_; 125 content::BrowserContext* context_;
128 126
129 DISALLOW_COPY_AND_ASSIGN(GuestViewManager); 127 DISALLOW_COPY_AND_ASSIGN(GuestViewManager);
130 }; 128 };
131 129
132 #endif // CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_ 130 #endif // CHROME_BROWSER_GUEST_VIEW_GUEST_VIEW_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698