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

Side by Side Diff: chrome/browser/extensions/external_loader.cc

Issue 10692168: Moved ExternalExtensionLoaders/Providers into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Requested changes + latest master Created 8 years, 5 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
1 // Copyright (c) 2011 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 #include "chrome/browser/extensions/external_extension_loader.h" 5 #include "chrome/browser/extensions/external_loader.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/extensions/external_extension_provider_impl.h" 9 #include "chrome/browser/extensions/external_provider_impl.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
11 11
12 using content::BrowserThread; 12 using content::BrowserThread;
13 13
14 ExternalExtensionLoader::ExternalExtensionLoader() 14 namespace extensions {
15
16 ExternalLoader::ExternalLoader()
15 : owner_(NULL), 17 : owner_(NULL),
16 running_(false) { 18 running_(false) {
17 } 19 }
18 20
19 void ExternalExtensionLoader::Init( 21 void ExternalLoader::Init(ExternalProviderImpl* owner) {
20 ExternalExtensionProviderImpl* owner) {
21 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 22 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
22 owner_ = owner; 23 owner_ = owner;
23 } 24 }
24 25
25 const FilePath ExternalExtensionLoader::GetBaseCrxFilePath() { 26 const FilePath ExternalLoader::GetBaseCrxFilePath() {
26 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 27 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
27 28
28 // By default, relative paths are not supported. 29 // By default, relative paths are not supported.
29 // Subclasses that wish to support them should override this method. 30 // Subclasses that wish to support them should override this method.
30 return FilePath(); 31 return FilePath();
31 } 32 }
32 33
33 void ExternalExtensionLoader::OwnerShutdown() { 34 void ExternalLoader::OwnerShutdown() {
34 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 35 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
35 owner_ = NULL; 36 owner_ = NULL;
36 } 37 }
37 38
38 ExternalExtensionLoader::~ExternalExtensionLoader() {} 39 ExternalLoader::~ExternalLoader() {}
39 40
40 void ExternalExtensionLoader::LoadFinished() { 41 void ExternalLoader::LoadFinished() {
41 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 42 CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
42 running_ = false; 43 running_ = false;
43 if (owner_) { 44 if (owner_) {
44 owner_->SetPrefs(prefs_.release()); 45 owner_->SetPrefs(prefs_.release());
45 } 46 }
46 } 47 }
48
49 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698