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

Side by Side Diff: chrome/browser/automation/automation_provider_observers.h

Issue 9030010: Move most of the remaining users of WebContentsObserver::tab_contents() to use web_contents(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 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 | chrome/browser/automation/automation_provider_observers.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) 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 CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 class SavePackage; 67 class SavePackage;
68 class TabContents; 68 class TabContents;
69 class TranslateInfoBarDelegate; 69 class TranslateInfoBarDelegate;
70 70
71 #if defined(OS_CHROMEOS) 71 #if defined(OS_CHROMEOS)
72 namespace chromeos { 72 namespace chromeos {
73 class ExistingUserController; 73 class ExistingUserController;
74 } 74 }
75 #endif // defined(OS_CHROMEOS) 75 #endif // defined(OS_CHROMEOS)
76 76
77 namespace IPC {
78 class Message;
79 }
80
81 namespace content {
82 class WebContents;
83 }
84
77 namespace history { 85 namespace history {
78 class TopSites; 86 class TopSites;
79 } 87 }
80 88
81 namespace IPC {
82 class Message;
83 }
84
85 namespace policy { 89 namespace policy {
86 class BrowserPolicyConnector; 90 class BrowserPolicyConnector;
87 } 91 }
88 92
89 class InitialLoadObserver : public content::NotificationObserver { 93 class InitialLoadObserver : public content::NotificationObserver {
90 public: 94 public:
91 InitialLoadObserver(size_t tab_count, AutomationProvider* automation); 95 InitialLoadObserver(size_t tab_count, AutomationProvider* automation);
92 virtual ~InitialLoadObserver(); 96 virtual ~InitialLoadObserver();
93 97
94 virtual void Observe(int type, 98 virtual void Observe(int type,
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 typedef std::map<std::string, int> EventDurationMap; 683 typedef std::map<std::string, int> EventDurationMap;
680 EventDurationMap durations_; 684 EventDurationMap durations_;
681 685
682 DISALLOW_COPY_AND_ASSIGN(MetricEventDurationObserver); 686 DISALLOW_COPY_AND_ASSIGN(MetricEventDurationObserver);
683 }; 687 };
684 688
685 class PageTranslatedObserver : public content::NotificationObserver { 689 class PageTranslatedObserver : public content::NotificationObserver {
686 public: 690 public:
687 PageTranslatedObserver(AutomationProvider* automation, 691 PageTranslatedObserver(AutomationProvider* automation,
688 IPC::Message* reply_message, 692 IPC::Message* reply_message,
689 TabContents* tab_contents); 693 content::WebContents* web_contents);
690 virtual ~PageTranslatedObserver(); 694 virtual ~PageTranslatedObserver();
691 695
692 // content::NotificationObserver interface. 696 // content::NotificationObserver interface.
693 virtual void Observe(int type, 697 virtual void Observe(int type,
694 const content::NotificationSource& source, 698 const content::NotificationSource& source,
695 const content::NotificationDetails& details); 699 const content::NotificationDetails& details);
696 700
697 private: 701 private:
698 content::NotificationRegistrar registrar_; 702 content::NotificationRegistrar registrar_;
699 base::WeakPtr<AutomationProvider> automation_; 703 base::WeakPtr<AutomationProvider> automation_;
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1859 private: 1863 private:
1860 base::WeakPtr<AutomationProvider> automation_; 1864 base::WeakPtr<AutomationProvider> automation_;
1861 scoped_ptr<IPC::Message> reply_message_; 1865 scoped_ptr<IPC::Message> reply_message_;
1862 std::string extension_id_; 1866 std::string extension_id_;
1863 content::NotificationRegistrar registrar_; 1867 content::NotificationRegistrar registrar_;
1864 1868
1865 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); 1869 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver);
1866 }; 1870 };
1867 1871
1868 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 1872 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider_observers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698