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

Unified Diff: android_webview/lib/main/aw_main_delegate.h

Issue 2901333003: [WebView] Flatten lib/main to lib (Closed)
Patch Set: nits Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/lib/aw_main_delegate.cc ('k') | android_webview/lib/main/aw_main_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/lib/main/aw_main_delegate.h
diff --git a/android_webview/lib/main/aw_main_delegate.h b/android_webview/lib/main/aw_main_delegate.h
deleted file mode 100644
index 65f86af184d05c5837354d0f726e7172f3ce0149..0000000000000000000000000000000000000000
--- a/android_webview/lib/main/aw_main_delegate.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_
-#define ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_
-
-#include <memory>
-
-#include "android_webview/common/aw_content_client.h"
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "content/public/app/content_main_delegate.h"
-
-namespace content {
-class BrowserMainRunner;
-}
-
-namespace safe_browsing {
-class SafeBrowsingApiHandler;
-}
-
-namespace android_webview {
-
-class AwContentBrowserClient;
-class AwContentGpuClient;
-class AwContentRendererClient;
-
-// Android WebView implementation of ContentMainDelegate. The methods in
-// this class runs per process, (browser and renderer) so when making changes
-// make sure to properly conditionalize for browser vs. renderer wherever
-// needed.
-class AwMainDelegate : public content::ContentMainDelegate {
- public:
- AwMainDelegate();
- ~AwMainDelegate() override;
-
- private:
- // content::ContentMainDelegate implementation:
- bool BasicStartupComplete(int* exit_code) override;
- void PreSandboxStartup() override;
- int RunProcess(
- const std::string& process_type,
- const content::MainFunctionParams& main_function_params) override;
- void ProcessExiting(const std::string& process_type) override;
- content::ContentBrowserClient* CreateContentBrowserClient() override;
- content::ContentGpuClient* CreateContentGpuClient() override;
- content::ContentRendererClient* CreateContentRendererClient() override;
-
- std::unique_ptr<content::BrowserMainRunner> browser_runner_;
- AwContentClient content_client_;
- std::unique_ptr<AwContentBrowserClient> content_browser_client_;
- std::unique_ptr<AwContentGpuClient> content_gpu_client_;
- std::unique_ptr<AwContentRendererClient> content_renderer_client_;
- std::unique_ptr<safe_browsing::SafeBrowsingApiHandler>
- safe_browsing_api_handler_;
-
- DISALLOW_COPY_AND_ASSIGN(AwMainDelegate);
-};
-
-} // namespace android_webview
-
-#endif // ANDROID_WEBVIEW_LIB_MAIN_AW_MAIN_DELEGATE_H_
« no previous file with comments | « android_webview/lib/aw_main_delegate.cc ('k') | android_webview/lib/main/aw_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698