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

Side by Side Diff: chrome/app/android/chrome_main_delegate_android.h

Issue 1420053005: Move code in components/safe_browsing_db and chrome/browser/s_b/ under the safe_browsing namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@02_components_move
Patch Set: Remove safe_browsing:: from util.cc, fix Android compilation errors. Created 5 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_ 5 #ifndef CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_
6 #define CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_ 6 #define CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/app/chrome_main_delegate.h" 9 #include "chrome/app/chrome_main_delegate.h"
10 #include "content/public/browser/browser_main_runner.h" 10 #include "content/public/browser/browser_main_runner.h"
11 11
12 namespace safe_browsing {
12 class SafeBrowsingApiHandler; 13 class SafeBrowsingApiHandler;
14 } // namespace safe_browsing
Lei Zhang 2015/11/12 22:56:45 I prefer no trailing // namespace foo when the ent
vakh (old account. dont use) 2015/11/12 23:04:10 Done.
13 15
14 // Android override of ChromeMainDelegate 16 // Android override of ChromeMainDelegate
15 class ChromeMainDelegateAndroid : public ChromeMainDelegate { 17 class ChromeMainDelegateAndroid : public ChromeMainDelegate {
16 public: 18 public:
17 static ChromeMainDelegateAndroid* Create(); 19 static ChromeMainDelegateAndroid* Create();
18 20
19 protected: 21 protected:
20 ChromeMainDelegateAndroid(); 22 ChromeMainDelegateAndroid();
21 ~ChromeMainDelegateAndroid() override; 23 ~ChromeMainDelegateAndroid() override;
22 24
23 bool BasicStartupComplete(int* exit_code) override; 25 bool BasicStartupComplete(int* exit_code) override;
24 void SandboxInitialized(const std::string& process_type) override; 26 void SandboxInitialized(const std::string& process_type) override;
25 int RunProcess( 27 int RunProcess(
26 const std::string& process_type, 28 const std::string& process_type,
27 const content::MainFunctionParams& main_function_params) override; 29 const content::MainFunctionParams& main_function_params) override;
28 void ProcessExiting(const std::string& process_type) override; 30 void ProcessExiting(const std::string& process_type) override;
29 31
30 #if defined(SAFE_BROWSING_DB_REMOTE) 32 #if defined(SAFE_BROWSING_DB_REMOTE)
31 virtual SafeBrowsingApiHandler* CreateSafeBrowsingApiHandler(); 33 virtual safe_browsing::SafeBrowsingApiHandler* CreateSafeBrowsingApiHandler();
32 #endif 34 #endif
33 35
34 private: 36 private:
35 scoped_ptr<content::BrowserMainRunner> browser_runner_; 37 scoped_ptr<content::BrowserMainRunner> browser_runner_;
36 38
37 #if defined(SAFE_BROWSING_DB_REMOTE) 39 #if defined(SAFE_BROWSING_DB_REMOTE)
38 scoped_ptr<SafeBrowsingApiHandler> safe_browsing_api_handler_; 40 scoped_ptr<safe_browsing::SafeBrowsingApiHandler> safe_browsing_api_handler_;
39 #endif 41 #endif
40 42
41 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegateAndroid); 43 DISALLOW_COPY_AND_ASSIGN(ChromeMainDelegateAndroid);
42 }; 44 };
43 45
44 #endif // CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_ 46 #endif // CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/app/android/chrome_main_delegate_android.cc » ('j') | chrome/app/android/chrome_main_delegate_android.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698