OLD | NEW |
1 // Copyright (c) 2006-2008 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_AUTOCOMPLETE_EDIT_PROXY_H__ | 5 #ifndef CHROME_TEST_AUTOMATION_AUTOCOMPLETE_EDIT_PROXY_H__ |
6 #define CHROME_TEST_AUTOMATION_AUTOCOMPLETE_EDIT_PROXY_H__ | 6 #define CHROME_TEST_AUTOMATION_AUTOCOMPLETE_EDIT_PROXY_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "chrome/browser/autocomplete/autocomplete.h" | 11 #include "chrome/browser/autocomplete/autocomplete.h" |
12 #include "chrome/common/ipc_message.h" | |
13 #include "chrome/common/ipc_message_utils.h" | |
14 #include "chrome/test/automation/automation_handle_tracker.h" | 12 #include "chrome/test/automation/automation_handle_tracker.h" |
15 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 #include "ipc/ipc_message.h" |
| 15 #include "ipc/ipc_message_utils.h" |
16 | 16 |
17 // The purpose of this class is to act as a serializable version of | 17 // The purpose of this class is to act as a serializable version of |
18 // AutocompleteMatch. The reason for this class is because we don't want to | 18 // AutocompleteMatch. The reason for this class is because we don't want to |
19 // serialize all elements of AutocompleteMatch and we want some data from the | 19 // serialize all elements of AutocompleteMatch and we want some data from the |
20 // autocomplete provider without the hassle of serializing it. | 20 // autocomplete provider without the hassle of serializing it. |
21 struct AutocompleteMatchData { | 21 struct AutocompleteMatchData { |
22 public: | 22 public: |
23 AutocompleteMatchData() {} | 23 AutocompleteMatchData() {} |
24 explicit AutocompleteMatchData(const AutocompleteMatch& match) | 24 explicit AutocompleteMatchData(const AutocompleteMatch& match) |
25 : provider_name(match.provider->name()), | 25 : provider_name(match.provider->name()), |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // Waits for all queries to autocomplete providers to complete. | 143 // Waits for all queries to autocomplete providers to complete. |
144 // |wait_timeout_ms| gives the number of milliseconds to wait for the query | 144 // |wait_timeout_ms| gives the number of milliseconds to wait for the query |
145 // to finish. Returns false if IPC call failed or if the function times out. | 145 // to finish. Returns false if IPC call failed or if the function times out. |
146 bool WaitForQuery(int wait_timeout_ms) const; | 146 bool WaitForQuery(int wait_timeout_ms) const; |
147 | 147 |
148 private: | 148 private: |
149 DISALLOW_EVIL_CONSTRUCTORS(AutocompleteEditProxy); | 149 DISALLOW_EVIL_CONSTRUCTORS(AutocompleteEditProxy); |
150 }; | 150 }; |
151 | 151 |
152 #endif // #define CHROME_TEST_AUTOMATION_AUTOCOMPLETE_EDIT_PROXY_H__ | 152 #endif // #define CHROME_TEST_AUTOMATION_AUTOCOMPLETE_EDIT_PROXY_H__ |
OLD | NEW |