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

Side by Side Diff: content/browser/gpu/shader_disk_cache.cc

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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 | « content/browser/gpu/shader_disk_cache.h ('k') | content/browser/histogram_controller.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "content/browser/gpu/shader_disk_cache.h" 5 #include "content/browser/gpu/shader_disk_cache.h"
6 6
7 #include "base/threading/thread_checker.h" 7 #include "base/threading/thread_checker.h"
8 #include "content/browser/gpu/gpu_process_host.h" 8 #include "content/browser/gpu/gpu_process_host.h"
9 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
10 #include "gpu/command_buffer/common/constants.h" 10 #include "gpu/command_buffer/common/constants.h"
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 default: 409 default:
410 NOTREACHED(); // Invalid state provided. 410 NOTREACHED(); // Invalid state provided.
411 op_type_ = TERMINATE; 411 op_type_ = TERMINATE;
412 break; 412 break;
413 } 413 }
414 } 414 }
415 } 415 }
416 416
417 // static 417 // static
418 ShaderCacheFactory* ShaderCacheFactory::GetInstance() { 418 ShaderCacheFactory* ShaderCacheFactory::GetInstance() {
419 return Singleton<ShaderCacheFactory, 419 return base::Singleton<ShaderCacheFactory,
420 LeakySingletonTraits<ShaderCacheFactory> >::get(); 420 base::LeakySingletonTraits<ShaderCacheFactory>>::get();
421 } 421 }
422 422
423 ShaderCacheFactory::ShaderCacheFactory() { 423 ShaderCacheFactory::ShaderCacheFactory() {
424 } 424 }
425 425
426 ShaderCacheFactory::~ShaderCacheFactory() { 426 ShaderCacheFactory::~ShaderCacheFactory() {
427 } 427 }
428 428
429 void ShaderCacheFactory::SetCacheInfo(int32 client_id, 429 void ShaderCacheFactory::SetCacheInfo(int32 client_id,
430 const base::FilePath& path) { 430 const base::FilePath& path) {
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 const net::CompletionCallback& callback) { 616 const net::CompletionCallback& callback) {
617 if (entry_map_.empty()) { 617 if (entry_map_.empty()) {
618 return net::OK; 618 return net::OK;
619 } 619 }
620 cache_complete_callback_ = callback; 620 cache_complete_callback_ = callback;
621 return net::ERR_IO_PENDING; 621 return net::ERR_IO_PENDING;
622 } 622 }
623 623
624 } // namespace content 624 } // namespace content
625 625
OLDNEW
« no previous file with comments | « content/browser/gpu/shader_disk_cache.h ('k') | content/browser/histogram_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698