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

Side by Side Diff: chrome/common/extensions/api/extension_api.cc

Issue 10675007: Move each permission classes to its own files in extensions/permissions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase again 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/extension.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/common/extensions/api/extension_api.h" 5 #include "chrome/common/extensions/api/extension_api.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/json/json_reader.h" 11 #include "base/json/json_reader.h"
12 #include "base/json/json_writer.h" 12 #include "base/json/json_writer.h"
13 #include "base/lazy_instance.h" 13 #include "base/lazy_instance.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/string_number_conversions.h" 15 #include "base/string_number_conversions.h"
16 #include "base/string_split.h" 16 #include "base/string_split.h"
17 #include "base/string_util.h" 17 #include "base/string_util.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #include "chrome/common/extensions/api/generated_schemas.h" 19 #include "chrome/common/extensions/api/generated_schemas.h"
20 #include "chrome/common/extensions/extension.h" 20 #include "chrome/common/extensions/extension.h"
21 #include "chrome/common/extensions/extension_permission_set.h"
22 #include "chrome/common/extensions/features/simple_feature_provider.h" 21 #include "chrome/common/extensions/features/simple_feature_provider.h"
23 #include "googleurl/src/gurl.h" 22 #include "googleurl/src/gurl.h"
24 #include "grit/common_resources.h" 23 #include "grit/common_resources.h"
25 #include "grit/extensions_api_resources.h" 24 #include "grit/extensions_api_resources.h"
26 #include "ui/base/layout.h" 25 #include "ui/base/layout.h"
27 #include "ui/base/resource/resource_bundle.h" 26 #include "ui/base/resource/resource_bundle.h"
28 27
29 using base::DictionaryValue; 28 using base::DictionaryValue;
30 using base::ListValue; 29 using base::ListValue;
31 using base::Value; 30 using base::Value;
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 803
805 void ExtensionAPI::LoadAllSchemas() { 804 void ExtensionAPI::LoadAllSchemas() {
806 while (unloaded_schemas_.size()) { 805 while (unloaded_schemas_.size()) {
807 std::map<std::string, base::StringPiece>::iterator it = 806 std::map<std::string, base::StringPiece>::iterator it =
808 unloaded_schemas_.begin(); 807 unloaded_schemas_.begin();
809 LoadSchema(it->first, it->second); 808 LoadSchema(it->first, it->second);
810 } 809 }
811 } 810 }
812 811
813 } // namespace extensions 812 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/common/extensions/extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698