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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/DOMFileSystem.cpp

Issue 2727633006: DevTools: Rename InspectorInstrumentation:: namespace into probe:: (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 namespace blink { 54 namespace blink {
55 55
56 namespace { 56 namespace {
57 57
58 void runCallback(ExecutionContext* executionContext, 58 void runCallback(ExecutionContext* executionContext,
59 std::unique_ptr<WTF::Closure> task) { 59 std::unique_ptr<WTF::Closure> task) {
60 if (!executionContext) 60 if (!executionContext)
61 return; 61 return;
62 DCHECK(executionContext->isContextThread()); 62 DCHECK(executionContext->isContextThread());
63 InspectorInstrumentation::AsyncTask asyncTask(executionContext, task.get(), 63 probe::AsyncTask asyncTask(executionContext, task.get(),
64 true /* isInstrumented */); 64 true /* isInstrumented */);
65 (*task)(); 65 (*task)();
66 } 66 }
67 67
68 } // namespace 68 } // namespace
69 69
70 // static 70 // static
71 DOMFileSystem* DOMFileSystem::create(ExecutionContext* context, 71 DOMFileSystem* DOMFileSystem::create(ExecutionContext* context,
72 const String& name, 72 const String& name,
73 FileSystemType type, 73 FileSystemType type,
74 const KURL& rootURL) { 74 const KURL& rootURL) {
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 fileSystem()->createSnapshotFileAndReadMetadata( 202 fileSystem()->createSnapshotFileAndReadMetadata(
203 fileSystemURL, 203 fileSystemURL,
204 SnapshotFileCallback::create(this, fileEntry->name(), fileSystemURL, 204 SnapshotFileCallback::create(this, fileEntry->name(), fileSystemURL,
205 successCallback, errorCallback, m_context)); 205 successCallback, errorCallback, m_context));
206 } 206 }
207 207
208 void DOMFileSystem::scheduleCallback(ExecutionContext* executionContext, 208 void DOMFileSystem::scheduleCallback(ExecutionContext* executionContext,
209 std::unique_ptr<WTF::Closure> task) { 209 std::unique_ptr<WTF::Closure> task) {
210 DCHECK(executionContext->isContextThread()); 210 DCHECK(executionContext->isContextThread());
211 InspectorInstrumentation::asyncTaskScheduled( 211 probe::asyncTaskScheduled(executionContext, taskNameForInstrumentation(),
212 executionContext, taskNameForInstrumentation(), task.get()); 212 task.get());
213 TaskRunnerHelper::get(TaskType::FileReading, executionContext) 213 TaskRunnerHelper::get(TaskType::FileReading, executionContext)
214 ->postTask(BLINK_FROM_HERE, 214 ->postTask(BLINK_FROM_HERE,
215 WTF::bind(&runCallback, wrapWeakPersistent(executionContext), 215 WTF::bind(&runCallback, wrapWeakPersistent(executionContext),
216 WTF::passed(std::move(task)))); 216 WTF::passed(std::move(task))));
217 } 217 }
218 218
219 DEFINE_TRACE(DOMFileSystem) { 219 DEFINE_TRACE(DOMFileSystem) {
220 visitor->trace(m_rootEntry); 220 visitor->trace(m_rootEntry);
221 DOMFileSystemBase::trace(visitor); 221 DOMFileSystemBase::trace(visitor);
222 ContextClient::trace(visitor); 222 ContextClient::trace(visitor);
223 } 223 }
224 224
225 } // namespace blink 225 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/GlobalFetch.cpp ('k') | third_party/WebKit/Source/modules/filesystem/FileWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698