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

Side by Side Diff: chrome/browser/extensions/external_provider_interface.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
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_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_INTERFACE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_INTERFACE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_INTERFACE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/linked_ptr.h" 10 #include "base/memory/linked_ptr.h"
11 #include "chrome/common/extensions/manifest.h" 11 #include "chrome/common/extensions/manifest.h"
12 12
13 class FilePath;
14 class GURL; 13 class GURL;
15 class Version; 14 class Version;
16 15
16 namespace base {
17 class FilePath;
18 }
19
17 namespace extensions { 20 namespace extensions {
18 21
19 // This class is an abstract class for implementing external extensions 22 // This class is an abstract class for implementing external extensions
20 // providers. 23 // providers.
21 class ExternalProviderInterface { 24 class ExternalProviderInterface {
22 public: 25 public:
23 // ExternalProvider uses this interface to communicate back to the 26 // ExternalProvider uses this interface to communicate back to the
24 // caller what extensions are registered, and which |id|, |version| and |path| 27 // caller what extensions are registered, and which |id|, |version| and |path|
25 // they have. See also VisitRegisteredExtension below. Ownership of |version| 28 // they have. See also VisitRegisteredExtension below. Ownership of |version|
26 // is not transferred to the visitor. Callers of the methods below must 29 // is not transferred to the visitor. Callers of the methods below must
27 // ensure that |id| is a valid extension id (use Extension::IdIsValid(id)). 30 // ensure that |id| is a valid extension id (use Extension::IdIsValid(id)).
28 class VisitorInterface { 31 class VisitorInterface {
29 public: 32 public:
30 // Return true if the extension install will proceed. Install will not 33 // Return true if the extension install will proceed. Install will not
31 // proceed if the extension is already installed from a higher priority 34 // proceed if the extension is already installed from a higher priority
32 // location. 35 // location.
33 virtual bool OnExternalExtensionFileFound( 36 virtual bool OnExternalExtensionFileFound(
34 const std::string& id, 37 const std::string& id,
35 const Version* version, 38 const Version* version,
36 const FilePath& path, 39 const base::FilePath& path,
37 Manifest::Location location, 40 Manifest::Location location,
38 int creation_flags, 41 int creation_flags,
39 bool mark_acknowledged) = 0; 42 bool mark_acknowledged) = 0;
40 43
41 // Return true if the extension install will proceed. Install might not 44 // Return true if the extension install will proceed. Install might not
42 // proceed if the extension is already installed from a higher priority 45 // proceed if the extension is already installed from a higher priority
43 // location. 46 // location.
44 virtual bool OnExternalExtensionUpdateUrlFound( 47 virtual bool OnExternalExtensionUpdateUrlFound(
45 const std::string& id, 48 const std::string& id,
46 const GURL& update_url, 49 const GURL& update_url,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // from its source. 86 // from its source.
84 virtual bool IsReady() const = 0; 87 virtual bool IsReady() const = 0;
85 }; 88 };
86 89
87 typedef std::vector<linked_ptr<ExternalProviderInterface> > 90 typedef std::vector<linked_ptr<ExternalProviderInterface> >
88 ProviderCollection; 91 ProviderCollection;
89 92
90 } // namespace extensions 93 } // namespace extensions
91 94
92 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_INTERFACE_H_ 95 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_creator_filter.h ('k') | chrome/browser/extensions/platform_app_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698