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

Unified Diff: ui/views_content_client/views_content_client.h

Issue 288313012: Revert of Repurpose views+content example into a generic multiprocess views runtime (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: ui/views_content_client/views_content_client.h
diff --git a/ui/views_content_client/views_content_client.h b/ui/views_content_client/views_content_client.h
deleted file mode 100644
index f66eead52de2e3af336a4dd641b4668c47a25d6c..0000000000000000000000000000000000000000
--- a/ui/views_content_client/views_content_client.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// Copyright 2014 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 UI_VIEWS_CONTENT_CLIENT_VIEWS_CONTENT_CLIENT_H_
-#define UI_VIEWS_CONTENT_CLIENT_VIEWS_CONTENT_CLIENT_H_
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "ui/gfx/native_widget_types.h"
-#include "ui/views_content_client/views_content_client_export.h"
-
-namespace content {
-class BrowserContext;
-}
-
-namespace sandbox {
-struct SandboxInterfaceInfo;
-}
-
-namespace ui {
-
-// Creates a multiprocess views runtime for running an example application.
-//
-// Sample usage:
-//
-// void InitMyApp(content::BrowserContext* browser_context,
-// gfx::NativeView window_context) {
-// // Create desired windows and views here. Runs on the UI thread.
-// }
-//
-// #if defined(OS_WIN)
-// int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t*, int) {
-// sandbox::SandboxInterfaceInfo sandbox_info = {0};
-// content::InitializeSandboxInfo(&sandbox_info);
-// ui::ViewsContentClient params(instance, &sandbox_info);
-// #else
-// int main(int argc, const char** argv) {
-// ui::ViewsContentClient params(argc, argv);
-// #endif
-//
-// params.set_task(base::Bind(&InitMyApp));
-// return params.RunMain();
-// }
-class VIEWS_CONTENT_CLIENT_EXPORT ViewsContentClient {
- public:
- typedef base::Callback<
- void(content::BrowserContext* browser_context,
- gfx::NativeView window_context)> Task;
-
-#if defined(OS_WIN)
- ViewsContentClient(HINSTANCE instance,
- sandbox::SandboxInterfaceInfo* sandbox_info);
-#else
- ViewsContentClient(int argc, const char** argv);
-#endif
-
- ~ViewsContentClient();
-
- // Runs content::ContentMain() using the ExamplesMainDelegate.
- int RunMain();
-
- // The task to run at the end of BrowserMainParts::PreMainMessageLoopRun().
- // Ignored if this is not the main process.
- void set_task(const Task& task) { task_ = task; }
- const Task& task() const { return task_; }
-
- private:
-#if defined(OS_WIN)
- HINSTANCE instance_;
- sandbox::SandboxInterfaceInfo* sandbox_info_;
-#else
- int argc_;
- const char** argv_;
-#endif
- Task task_;
-
- DISALLOW_COPY_AND_ASSIGN(ViewsContentClient);
-};
-
-} // namespace ui
-
-#endif // UI_VIEWS_CONTENT_CLIENT_VIEWS_CONTENT_CLIENT_H_
« no previous file with comments | « ui/views_content_client/views_content_browser_client.cc ('k') | ui/views_content_client/views_content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698