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

Side by Side Diff: net/base/sdch_manager.cc

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "base/histogram.h" 5 #include "base/histogram.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/sha2.h" 7 #include "base/sha2.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "net/base/base64.h" 9 #include "net/base/base64.h"
10 #include "net/base/registry_controlled_domain.h" 10 #include "net/base/registry_controlled_domain.h"
11 #include "net/base/sdch_manager.h" 11 #include "net/base/sdch_manager.h"
12 #include "net/url_request/url_request_http_job.h" 12 #include "net/url_request/url_request_http_job.h"
13 13
14 using base::Time;
15 using base::TimeDelta;
14 16
15 //------------------------------------------------------------------------------ 17 //------------------------------------------------------------------------------
16 // static 18 // static
17 SdchManager* SdchManager::global_; 19 SdchManager* SdchManager::global_;
18 20
19 // static 21 // static
20 SdchManager* SdchManager::Global() { 22 SdchManager* SdchManager::Global() {
21 return global_; 23 return global_;
22 } 24 }
23 25
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 return false; 382 return false;
381 return restriction[prefix_length - 1] == '/' || path[prefix_length] == '/'; 383 return restriction[prefix_length - 1] == '/' || path[prefix_length] == '/';
382 } 384 }
383 385
384 // static 386 // static
385 bool SdchManager::Dictionary::DomainMatch(const GURL& gurl, 387 bool SdchManager::Dictionary::DomainMatch(const GURL& gurl,
386 const std::string& restriction) { 388 const std::string& restriction) {
387 // TODO(jar): This is not precisely a domain match definition. 389 // TODO(jar): This is not precisely a domain match definition.
388 return gurl.DomainIs(restriction.data(), restriction.size()); 390 return gurl.DomainIs(restriction.data(), restriction.size());
389 } 391 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698