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

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

Issue 9963120: Introduces an additional extension loader that load extra extensions based on per-extension json fi… (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 8 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_FILESYSTEM_EXTENSION_LOADER_LINUX_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_FILESYSTEM_EXTENSION_LOADER_LINUX_H_
7 #pragma once
8
9 #include "base/compiler_specific.h"
10 #include "chrome/browser/extensions/external_extension_loader.h"
11
12 class ExternalFilesystemExtensionLoader : public ExternalExtensionLoader {
Finnur 2012/04/25 13:33:45 Classes need class-level documentation. Doesn't ha
Alexandre Abreu 2012/04/25 15:31:05 Done.
13 public:
14 // |base_path_key| is the directory containing the per-extension description
15 // json files. Relative file paths to extension files are resolved relative
16 // to this path.
Finnur 2012/04/25 13:33:45 Suggest: |base_path_id| is the resource id of the
Alexandre Abreu 2012/04/25 15:31:05 Done.
17 explicit ExternalFilesystemExtensionLoader(int base_path_key);
Finnur 2012/04/25 13:33:45 Can you rename this to |base_path_id|?
Alexandre Abreu 2012/04/25 15:31:05 Done.
18
19 virtual const FilePath GetBaseCrxFilePath() OVERRIDE;
20
21 protected:
22 virtual void StartLoading() OVERRIDE;
23
24 private:
25 friend class base::RefCountedThreadSafe<ExternalExtensionLoader>;
26
27 virtual ~ExternalFilesystemExtensionLoader();
28
29 void LoadOnFileThread();
Finnur 2012/04/25 13:33:45 This should be documented also.
Alexandre Abreu 2012/04/25 15:31:05 Done.
30
31 // See the constructor's base_path_key.
Finnur 2012/04/25 13:33:45 Suggest: The resource id of the base path containi
Alexandre Abreu 2012/04/25 15:31:05 Done.
32 int base_path_key_;
Finnur 2012/04/25 13:33:45 Same here: base_path_id.
Alexandre Abreu 2012/04/25 15:31:05 Done.
33
34 // Concrete path corresponding to the base_path_key_.
Finnur 2012/04/25 13:33:45 Suggest: The path containing the json file contain
Alexandre Abreu 2012/04/25 15:31:05 Done.
35 FilePath extension_base_path_;
36
37 DISALLOW_COPY_AND_ASSIGN(ExternalFilesystemExtensionLoader);
38 };
39
40 #endif
Finnur 2012/04/25 13:33:45 This is missing the // CHROME_BROWSER_EXTENSIONS_
Alexandre Abreu 2012/04/25 15:31:05 Done.
41
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698