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 "chrome/common/automation_constants.h" | 12 #include "chrome/test/automation/automation_constants.h" |
13 #include "chrome/test/automation/automation_handle_tracker.h" | 13 #include "chrome/test/automation/automation_handle_tracker.h" |
14 | 14 |
15 class AutomationMessageSender; | 15 class AutomationMessageSender; |
16 class BrowserProxy; | 16 class BrowserProxy; |
17 | 17 |
18 // 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 |
19 // 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. |
20 // 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 |
21 // updated to a newer version, this proxy is invalidated. | 21 // updated to a newer version, this proxy is invalidated. |
22 class ExtensionProxy : public AutomationResourceProxy { | 22 class ExtensionProxy : public AutomationResourceProxy { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 void EnsureBrowserActionIndexMatches(int expected_index); | 79 void EnsureBrowserActionIndexMatches(int expected_index); |
80 | 80 |
81 private: | 81 private: |
82 // 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 |
83 // success. | 83 // success. |
84 bool GetProperty(AutomationMsg_ExtensionProperty type, std::string* value) | 84 bool GetProperty(AutomationMsg_ExtensionProperty type, std::string* value) |
85 WARN_UNUSED_RESULT; | 85 WARN_UNUSED_RESULT; |
86 }; | 86 }; |
87 | 87 |
88 #endif // CHROME_TEST_AUTOMATION_EXTENSION_PROXY_H_ | 88 #endif // CHROME_TEST_AUTOMATION_EXTENSION_PROXY_H_ |
OLD | NEW |