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

Side by Side Diff: chrome/test/automation/tab_proxy.h

Issue 179028: Revert "Fix a ton of compiler warnings." (Closed)
Patch Set: Created 11 years, 3 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
« no previous file with comments | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | chrome/test/browser/browser_test_runner.h » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_TEST_AUTOMATION_TAB_PROXY_H_ 5 #ifndef CHROME_TEST_AUTOMATION_TAB_PROXY_H_
6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
11 #include <wtypes.h> 11 #include <wtypes.h>
(...skipping 16 matching lines...) Expand all
28 }; 28 };
29 29
30 enum FindInPageDirection { BACK = 0, FWD = 1 }; 30 enum FindInPageDirection { BACK = 0, FWD = 1 };
31 enum FindInPageCase { IGNORE_CASE = 0, CASE_SENSITIVE = 1 }; 31 enum FindInPageCase { IGNORE_CASE = 0, CASE_SENSITIVE = 1 };
32 32
33 class TabProxy : public AutomationResourceProxy { 33 class TabProxy : public AutomationResourceProxy {
34 public: 34 public:
35 class TabProxyDelegate { 35 class TabProxyDelegate {
36 public: 36 public:
37 virtual void OnMessageReceived(TabProxy* tab, const IPC::Message& msg) {} 37 virtual void OnMessageReceived(TabProxy* tab, const IPC::Message& msg) {}
38 protected:
39 ~TabProxyDelegate() {}
40 }; 38 };
41 39
42 TabProxy(AutomationMessageSender* sender, 40 TabProxy(AutomationMessageSender* sender,
43 AutomationHandleTracker* tracker, 41 AutomationHandleTracker* tracker,
44 int handle) 42 int handle)
45 : AutomationResourceProxy(tracker, sender, handle) {} 43 : AutomationResourceProxy(tracker, sender, handle) {}
46 44
47 // Gets the current url of the tab. 45 // Gets the current url of the tab.
48 bool GetCurrentURL(GURL* url) const; 46 bool GetCurrentURL(GURL* url) const;
49 47
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 void OnMessageReceived(const IPC::Message& message); 340 void OnMessageReceived(const IPC::Message& message);
343 protected: 341 protected:
344 virtual ~TabProxy() {} 342 virtual ~TabProxy() {}
345 private: 343 private:
346 Lock list_lock_; // Protects the observers_list_. 344 Lock list_lock_; // Protects the observers_list_.
347 ObserverList<TabProxyDelegate> observers_list_; 345 ObserverList<TabProxyDelegate> observers_list_;
348 DISALLOW_COPY_AND_ASSIGN(TabProxy); 346 DISALLOW_COPY_AND_ASSIGN(TabProxy);
349 }; 347 };
350 348
351 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 349 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | chrome/test/browser/browser_test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698