| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 !m->ReadBool(iter, &r->starred)) | 84 !m->ReadBool(iter, &r->starred)) |
| 85 return false; | 85 return false; |
| 86 r->destination_url = GURL(destination_url); | 86 r->destination_url = GURL(destination_url); |
| 87 return true; | 87 return true; |
| 88 } | 88 } |
| 89 | 89 |
| 90 static void Log(const param_type& p, std::wstring* l) { | 90 static void Log(const param_type& p, std::wstring* l) { |
| 91 l->append(L"["); | 91 l->append(L"["); |
| 92 l->append(UTF8ToWide(p.provider_name)); | 92 l->append(UTF8ToWide(p.provider_name)); |
| 93 l->append(L" "); | 93 l->append(L" "); |
| 94 l->append(IntToWString(p.relevance)); | 94 l->append(UTF8ToWide(base::IntToString(p.relevance))); |
| 95 l->append(L" "); | 95 l->append(L" "); |
| 96 l->append(p.deletable ? L"true" : L"false"); | 96 l->append(p.deletable ? L"true" : L"false"); |
| 97 l->append(L" "); | 97 l->append(L" "); |
| 98 l->append(p.fill_into_edit); | 98 l->append(p.fill_into_edit); |
| 99 l->append(L" "); | 99 l->append(L" "); |
| 100 l->append(IntToWString(p.inline_autocomplete_offset)); | 100 l->append(UTF8ToWide(base::IntToString(p.inline_autocomplete_offset))); |
| 101 l->append(L" "); | 101 l->append(L" "); |
| 102 l->append(UTF8ToWide(p.destination_url.spec())); | 102 l->append(UTF8ToWide(p.destination_url.spec())); |
| 103 l->append(L" "); | 103 l->append(L" "); |
| 104 l->append(p.contents); | 104 l->append(p.contents); |
| 105 l->append(L" "); | 105 l->append(L" "); |
| 106 l->append(p.description); | 106 l->append(p.description); |
| 107 l->append(L" "); | 107 l->append(L" "); |
| 108 l->append(p.is_history_what_you_typed_match ? L"true" : L"false"); | 108 l->append(p.is_history_what_you_typed_match ? L"true" : L"false"); |
| 109 l->append(L" "); | 109 l->append(L" "); |
| 110 l->append(UTF8ToWide(p.type)); | 110 l->append(UTF8ToWide(p.type)); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // Waits for all queries to autocomplete providers to complete. | 144 // Waits for all queries to autocomplete providers to complete. |
| 145 // |wait_timeout_ms| gives the number of milliseconds to wait for the query | 145 // |wait_timeout_ms| gives the number of milliseconds to wait for the query |
| 146 // to finish. Returns false if IPC call failed or if the function times out. | 146 // to finish. Returns false if IPC call failed or if the function times out. |
| 147 bool WaitForQuery(int wait_timeout_ms) const; | 147 bool WaitForQuery(int wait_timeout_ms) const; |
| 148 | 148 |
| 149 private: | 149 private: |
| 150 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditProxy); | 150 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditProxy); |
| 151 }; | 151 }; |
| 152 | 152 |
| 153 #endif // CHROME_TEST_AUTOMATION_AUTOCOMPLETE_EDIT_PROXY_H_ | 153 #endif // CHROME_TEST_AUTOMATION_AUTOCOMPLETE_EDIT_PROXY_H_ |
| OLD | NEW |