Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Side by Side Diff: components/translate/core/browser/translate_script.h

Issue 378253002: Fix translate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 16
17 namespace translate {
17 class TranslateScriptTest; 18 class TranslateScriptTest;
droger 2014/07/09 07:52:44 Nit: Same here.
nshaik 2014/07/09 08:56:52 Done.
18 class TranslateURLFetcher; 19 class TranslateURLFetcher;
20 }
21
22 namespace translate {
19 23
20 class TranslateScript { 24 class TranslateScript {
21 public: 25 public:
22 typedef base::Callback<void(bool, const std::string&)> RequestCallback; 26 typedef base::Callback<void(bool, const std::string&)> RequestCallback;
23 27
24 static const int kFetcherId = 0; 28 static const int kFetcherId = 0;
25 29
26 TranslateScript(); 30 TranslateScript();
27 virtual ~TranslateScript(); 31 virtual ~TranslateScript();
28 32
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 87
84 // The callbacks called when the server sends a response. 88 // The callbacks called when the server sends a response.
85 typedef std::vector<RequestCallback> RequestCallbackList; 89 typedef std::vector<RequestCallback> RequestCallbackList;
86 RequestCallbackList callback_list_; 90 RequestCallbackList callback_list_;
87 91
88 base::WeakPtrFactory<TranslateScript> weak_method_factory_; 92 base::WeakPtrFactory<TranslateScript> weak_method_factory_;
89 93
90 DISALLOW_COPY_AND_ASSIGN(TranslateScript); 94 DISALLOW_COPY_AND_ASSIGN(TranslateScript);
91 }; 95 };
92 96
97 } // namespace translate
98
93 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_SCRIPT_H_ 99 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_SCRIPT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698