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 COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_SCRIPT_H_ | 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_SCRIPT_H_ |
6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_SCRIPT_H_ | 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_SCRIPT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
15 #include "base/time/time.h" | 16 #include "base/time/time.h" |
16 | 17 |
17 namespace translate { | 18 namespace translate { |
18 | 19 |
19 class TranslateScriptTest; | 20 class TranslateScriptTest; |
20 class TranslateURLFetcher; | 21 class TranslateURLFetcher; |
21 | 22 |
22 class TranslateScript { | 23 class TranslateScript { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 RequestCallbackList callback_list_; | 89 RequestCallbackList callback_list_; |
89 | 90 |
90 base::WeakPtrFactory<TranslateScript> weak_method_factory_; | 91 base::WeakPtrFactory<TranslateScript> weak_method_factory_; |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(TranslateScript); | 93 DISALLOW_COPY_AND_ASSIGN(TranslateScript); |
93 }; | 94 }; |
94 | 95 |
95 } // namespace translate | 96 } // namespace translate |
96 | 97 |
97 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_SCRIPT_H_ | 98 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_SCRIPT_H_ |
OLD | NEW |