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

Side by Side Diff: extensions/browser/value_store/value_store_frontend.cc

Issue 888883002: Mechanical rename of tracing includes (remaining bits) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trace_watchlist
Patch Set: Created 5 years, 10 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 | « ash/shell.cc ('k') | extensions/renderer/module_system.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/value_store/value_store_frontend.h" 5 #include "extensions/browser/value_store/value_store_frontend.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h"
9 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
10 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/trace_event/trace_event.h"
11 #include "content/public/browser/browser_thread.h" 11 #include "content/public/browser/browser_thread.h"
12 #include "extensions/browser/value_store/leveldb_value_store.h" 12 #include "extensions/browser/value_store/leveldb_value_store.h"
13 13
14 using content::BrowserThread; 14 using content::BrowserThread;
15 15
16 class ValueStoreFrontend::Backend : public base::RefCountedThreadSafe<Backend> { 16 class ValueStoreFrontend::Backend : public base::RefCountedThreadSafe<Backend> {
17 public: 17 public:
18 Backend() : storage_(NULL) {} 18 Backend() : storage_(NULL) {}
19 19
20 void Init(const base::FilePath& db_path) { 20 void Init(const base::FilePath& db_path) {
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 backend_, key, base::Passed(&value))); 138 backend_, key, base::Passed(&value)));
139 } 139 }
140 140
141 void ValueStoreFrontend::Remove(const std::string& key) { 141 void ValueStoreFrontend::Remove(const std::string& key) {
142 DCHECK(CalledOnValidThread()); 142 DCHECK(CalledOnValidThread());
143 143
144 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, 144 BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
145 base::Bind(&ValueStoreFrontend::Backend::Remove, 145 base::Bind(&ValueStoreFrontend::Backend::Remove,
146 backend_, key)); 146 backend_, key));
147 } 147 }
OLDNEW
« no previous file with comments | « ash/shell.cc ('k') | extensions/renderer/module_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698