OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_TRANSLATE_CHROME_TRANSLATE_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_TRANSLATE_CHROME_TRANSLATE_CLIENT_H_ |
6 #define CHROME_BROWSER_TRANSLATE_CHROME_TRANSLATE_CLIENT_H_ | 6 #define CHROME_BROWSER_TRANSLATE_CHROME_TRANSLATE_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "chrome/browser/ui/translate/translate_bubble_model.h" | 12 #include "chrome/browser/ui/translate/translate_bubble_model.h" |
13 #include "components/infobars/core/infobar.h" | |
Peter Kasting
2014/06/09 00:27:21
Curious why this was needed in the .h?
msw
2014/06/09 16:27:32
Moved this to the .cc
| |
13 #include "components/translate/content/browser/content_translate_driver.h" | 14 #include "components/translate/content/browser/content_translate_driver.h" |
14 #include "components/translate/core/browser/translate_client.h" | 15 #include "components/translate/core/browser/translate_client.h" |
15 #include "components/translate/core/browser/translate_step.h" | 16 #include "components/translate/core/browser/translate_step.h" |
16 #include "components/translate/core/common/translate_errors.h" | 17 #include "components/translate/core/common/translate_errors.h" |
17 #include "content/public/browser/web_contents_observer.h" | 18 #include "content/public/browser/web_contents_observer.h" |
18 #include "content/public/browser/web_contents_user_data.h" | 19 #include "content/public/browser/web_contents_user_data.h" |
19 | 20 |
20 #if defined(CLD2_DYNAMIC_MODE) | 21 #if defined(CLD2_DYNAMIC_MODE) |
21 #include "base/basictypes.h" | 22 #include "base/basictypes.h" |
22 #include "base/lazy_instance.h" | 23 #include "base/lazy_instance.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
174 | 175 |
175 // Necessary for binding the callback to HandleCLDDataRequest on the blocking | 176 // Necessary for binding the callback to HandleCLDDataRequest on the blocking |
176 // pool and for delaying translation initialization until the page has | 177 // pool and for delaying translation initialization until the page has |
177 // finished loading on a reload. | 178 // finished loading on a reload. |
178 base::WeakPtrFactory<ChromeTranslateClient> weak_pointer_factory_; | 179 base::WeakPtrFactory<ChromeTranslateClient> weak_pointer_factory_; |
179 | 180 |
180 DISALLOW_COPY_AND_ASSIGN(ChromeTranslateClient); | 181 DISALLOW_COPY_AND_ASSIGN(ChromeTranslateClient); |
181 }; | 182 }; |
182 | 183 |
183 #endif // CHROME_BROWSER_TRANSLATE_CHROME_TRANSLATE_CLIENT_H_ | 184 #endif // CHROME_BROWSER_TRANSLATE_CHROME_TRANSLATE_CLIENT_H_ |
OLD | NEW |