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

Side by Side Diff: chrome/common/extensions/extension_set.cc

Issue 10855075: Clean-up inline members of nested classes (chrome/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
« no previous file with comments | « chrome/common/extensions/extension_set.h ('k') | chrome/common/net/gaia/gaia_authenticator.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/extension_set.h" 5 #include "chrome/common/extensions/extension_set.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/common/extensions/extension.h" 8 #include "chrome/common/extensions/extension.h"
9 #include "chrome/common/url_constants.h" 9 #include "chrome/common/url_constants.h"
10 10
11 using WebKit::WebSecurityOrigin; 11 using WebKit::WebSecurityOrigin;
12 using extensions::Extension; 12 using extensions::Extension;
13 13
14 ExtensionURLInfo::ExtensionURLInfo(WebSecurityOrigin origin, const GURL& url) 14 ExtensionURLInfo::ExtensionURLInfo(WebSecurityOrigin origin, const GURL& url)
15 : origin_(origin), 15 : origin_(origin),
16 url_(url) { 16 url_(url) {
17 DCHECK(!origin_.isNull()); 17 DCHECK(!origin_.isNull());
18 } 18 }
19 19
20 ExtensionURLInfo::ExtensionURLInfo(const GURL& url) 20 ExtensionURLInfo::ExtensionURLInfo(const GURL& url)
21 : url_(url) { 21 : url_(url) {
22 } 22 }
23 23
24 ExtensionSet::const_iterator::const_iterator() {}
25
26 ExtensionSet::const_iterator::const_iterator(const const_iterator& other)
27 : it_(other.it_) {
28 }
29
30 ExtensionSet::const_iterator::const_iterator(ExtensionMap::const_iterator it)
31 : it_(it) {
32 }
33
24 ExtensionSet::ExtensionSet() { 34 ExtensionSet::ExtensionSet() {
25 } 35 }
26 36
27 ExtensionSet::~ExtensionSet() { 37 ExtensionSet::~ExtensionSet() {
28 } 38 }
29 39
30 size_t ExtensionSet::size() const { 40 size_t ExtensionSet::size() const {
31 return extensions_.size(); 41 return extensions_.size();
32 } 42 }
33 43
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 return true; 159 return true;
150 160
151 if (info.url().SchemeIs(chrome::kExtensionScheme)) { 161 if (info.url().SchemeIs(chrome::kExtensionScheme)) {
152 const Extension* extension = GetByID(info.url().host()); 162 const Extension* extension = GetByID(info.url().host());
153 if (extension) { 163 if (extension) {
154 return extension->IsSandboxedPage(info.url().path()); 164 return extension->IsSandboxedPage(info.url().path());
155 } 165 }
156 } 166 }
157 return false; 167 return false;
158 } 168 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_set.h ('k') | chrome/common/net/gaia/gaia_authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698