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

Side by Side Diff: chrome/browser/content_settings/content_settings_extension_provider.cc

Issue 10381097: Move content settings extension API to content_settings dir. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved to c/b/e/api/content_settings Created 8 years, 7 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) 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 #include "chrome/browser/content_settings/content_settings_extension_provider.h" 5 #include "chrome/browser/content_settings/content_settings_extension_provider.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "chrome/browser/content_settings/content_settings_utils.h" 8 #include "chrome/browser/content_settings/content_settings_utils.h"
9 #include "chrome/browser/extensions/extension_content_settings_store.h"
10 #include "chrome/common/content_settings_pattern.h" 9 #include "chrome/common/content_settings_pattern.h"
11 10
12 namespace content_settings { 11 namespace content_settings {
13 12
14 ExtensionProvider::ExtensionProvider( 13 ExtensionProvider::ExtensionProvider(
15 ExtensionContentSettingsStore* extensions_settings, 14 ExtensionContentSettingsStore* extensions_settings,
16 bool incognito) 15 bool incognito)
17 : incognito_(incognito), 16 : incognito_(incognito),
18 extensions_settings_(extensions_settings) { 17 extensions_settings_(extensions_settings) {
19 extensions_settings_->AddObserver(this); 18 extensions_settings_->AddObserver(this);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 if (incognito_ != incognito) 50 if (incognito_ != incognito)
52 return; 51 return;
53 // TODO(markusheintz): Be more concise. 52 // TODO(markusheintz): Be more concise.
54 NotifyObservers(ContentSettingsPattern(), 53 NotifyObservers(ContentSettingsPattern(),
55 ContentSettingsPattern(), 54 ContentSettingsPattern(),
56 CONTENT_SETTINGS_TYPE_DEFAULT, 55 CONTENT_SETTINGS_TYPE_DEFAULT,
57 std::string()); 56 std::string());
58 } 57 }
59 58
60 } // namespace content_settings 59 } // namespace content_settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698