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

Unified Diff: athena/content/public/app_content_control_delegate.h

Issue 501093003: Consolidate AppControllDelegate to ExtensionsDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | « athena/content/content_activity_factory.h ('k') | athena/content/public/app_registry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/content/public/app_content_control_delegate.h
diff --git a/athena/content/public/app_content_control_delegate.h b/athena/content/public/app_content_control_delegate.h
deleted file mode 100644
index ad3e5538fe5e1d84ba7952e2ca9bd077b285d9a1..0000000000000000000000000000000000000000
--- a/athena/content/public/app_content_control_delegate.h
+++ /dev/null
@@ -1,40 +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 ATHENA_CONTENT_PUBLIC_APP_CONTENT_CONTROL_DLEGATE_H_
-#define ATHENA_CONTENT_PUBLIC_APP_CONTENT_CONTROL_DLEGATE_H_
-
-#include <string>
-
-#include "base/macros.h"
-
-namespace content {
-class BrowserContext;
-class WebContents;
-}
-
-namespace athena {
-
-// The application content delegate which can be overwritten for unit tests to
-// eliminate dependencies to the content / browser system.
-class AppContentControlDelegate {
- public:
- static AppContentControlDelegate* CreateAppContentControlDelegate();
-
- AppContentControlDelegate() {}
- virtual ~AppContentControlDelegate() {}
-
- // Unload an application. Returns true when unloaded.
- virtual bool UnloadApplication(const std::string& app_id,
- content::BrowserContext* browser_context) = 0;
- // Restarts an application. Returns true when the restart was initiated.
- virtual bool RestartApplication(const std::string& app_id,
- content::BrowserContext* browser_context) = 0;
- // Returns the application ID (or an empty string) for a given web content.
- virtual std::string GetApplicationID(content::WebContents* web_contents) = 0;
-};
-
-} // namespace athena
-
-#endif // ATHENA_CONTENT_PUBLIC_APP_CONTENT_CONTROL_DLEGATE_H_
« no previous file with comments | « athena/content/content_activity_factory.h ('k') | athena/content/public/app_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698