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

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

Issue 6854035: Move blocked content from TabContents to TabContentsWrapper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_OBSERVER_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
7 7
8 #include "content/browser/tab_contents/navigation_controller.h" 8 #include "content/browser/tab_contents/navigation_controller.h"
9 #include "content/common/page_transition_types.h" 9 #include "content/common/page_transition_types.h"
10 #include "ipc/ipc_channel.h" 10 #include "ipc/ipc_channel.h"
11 11
12 struct ViewHostMsg_FrameNavigate_Params; 12 struct ViewHostMsg_FrameNavigate_Params;
13 13
14 // An observer API implemented by classes which are interested in various page 14 // An observer API implemented by classes which are interested in various page
15 // load events from TabContents. They also get a chance to filter IPC messages. 15 // load events from TabContents. They also get a chance to filter IPC messages.
16 class TabContentsObserver : public IPC::Channel::Listener, 16 class TabContentsObserver : public IPC::Channel::Listener,
17 public IPC::Message::Sender { 17 public IPC::Message::Sender {
18 public: 18 public:
19 // Use this as a member variable in a class that uses the emptry constructor 19 // Use this as a member variable in a class that uses the empty constructor
20 // version of this interface. 20 // version of this interface.
21 class Registrar { 21 class Registrar {
22 public: 22 public:
23 explicit Registrar(TabContentsObserver* observer); 23 explicit Registrar(TabContentsObserver* observer);
24 ~Registrar(); 24 ~Registrar();
25 25
26 // Call this to start observing a tab. Passing in NULL resets it. 26 // Call this to start observing a tab. Passing in NULL resets it.
27 // This can only be used to watch one tab at a time. If you call this and 27 // This can only be used to watch one tab at a time. If you call this and
28 // you're already observing another tab, the old tab won't be observed 28 // you're already observing another tab, the old tab won't be observed
29 // afterwards. 29 // afterwards.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 TabContents* tab_contents_; 122 TabContents* tab_contents_;
123 123
124 // The routing ID of the associated TabContents. 124 // The routing ID of the associated TabContents.
125 int routing_id_; 125 int routing_id_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver); 127 DISALLOW_COPY_AND_ASSIGN(TabContentsObserver);
128 }; 128 };
129 129
130 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_ 130 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698