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

Side by Side 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, 3 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
« no previous file with comments | « athena/content/content_activity_factory.h ('k') | athena/content/public/app_registry.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ATHENA_CONTENT_PUBLIC_APP_CONTENT_CONTROL_DLEGATE_H_
6 #define ATHENA_CONTENT_PUBLIC_APP_CONTENT_CONTROL_DLEGATE_H_
7
8 #include <string>
9
10 #include "base/macros.h"
11
12 namespace content {
13 class BrowserContext;
14 class WebContents;
15 }
16
17 namespace athena {
18
19 // The application content delegate which can be overwritten for unit tests to
20 // eliminate dependencies to the content / browser system.
21 class AppContentControlDelegate {
22 public:
23 static AppContentControlDelegate* CreateAppContentControlDelegate();
24
25 AppContentControlDelegate() {}
26 virtual ~AppContentControlDelegate() {}
27
28 // Unload an application. Returns true when unloaded.
29 virtual bool UnloadApplication(const std::string& app_id,
30 content::BrowserContext* browser_context) = 0;
31 // Restarts an application. Returns true when the restart was initiated.
32 virtual bool RestartApplication(const std::string& app_id,
33 content::BrowserContext* browser_context) = 0;
34 // Returns the application ID (or an empty string) for a given web content.
35 virtual std::string GetApplicationID(content::WebContents* web_contents) = 0;
36 };
37
38 } // namespace athena
39
40 #endif // ATHENA_CONTENT_PUBLIC_APP_CONTENT_CONTROL_DLEGATE_H_
OLDNEW
« 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