OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_EXTENSION_PROXY_H_ | 5 #ifndef CHROME_TEST_AUTOMATION_EXTENSION_PROXY_H_ |
6 #define CHROME_TEST_AUTOMATION_EXTENSION_PROXY_H_ | 6 #define CHROME_TEST_AUTOMATION_EXTENSION_PROXY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/weak_ptr.h" | |
13 #include "chrome/test/automation/automation_constants.h" | 12 #include "chrome/test/automation/automation_constants.h" |
14 #include "chrome/test/automation/automation_handle_tracker.h" | 13 #include "chrome/test/automation/automation_handle_tracker.h" |
15 | 14 |
16 class AutomationMessageSender; | 15 class AutomationMessageSender; |
17 class BrowserProxy; | 16 class BrowserProxy; |
18 | 17 |
19 // This class presents the interface to actions that can be performed on | 18 // This class presents the interface to actions that can be performed on |
20 // a given extension. This refers to a particular version of that extension. | 19 // a given extension. This refers to a particular version of that extension. |
21 // For example, it refers to Google Translate 1.0. If the extension is | 20 // For example, it refers to Google Translate 1.0. If the extension is |
22 // updated to a newer version, this proxy is invalidated. | 21 // updated to a newer version, this proxy is invalidated. |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 void EnsureBrowserActionIndexMatches(int expected_index); | 79 void EnsureBrowserActionIndexMatches(int expected_index); |
81 | 80 |
82 private: | 81 private: |
83 // Gets the string value of the property of type |type|. Returns true on | 82 // Gets the string value of the property of type |type|. Returns true on |
84 // success. | 83 // success. |
85 bool GetProperty(AutomationMsg_ExtensionProperty type, std::string* value) | 84 bool GetProperty(AutomationMsg_ExtensionProperty type, std::string* value) |
86 WARN_UNUSED_RESULT; | 85 WARN_UNUSED_RESULT; |
87 }; | 86 }; |
88 | 87 |
89 #endif // CHROME_TEST_AUTOMATION_EXTENSION_PROXY_H_ | 88 #endif // CHROME_TEST_AUTOMATION_EXTENSION_PROXY_H_ |
OLD | NEW |