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

Side by Side Diff: content/browser/devtools/protocol/io_handler.cc

Issue 2591963004: Transform RefCountedDeleteOnMessageLoop to RefCountedDeleteOnSequence. (Closed)
Patch Set: similarity Created 3 years, 12 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/devtools/protocol/io_handler.h" 5 #include "content/browser/devtools/protocol/io_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/files/file.h" 11 #include "base/files/file.h"
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/memory/ref_counted_delete_on_message_loop.h"
14 #include "base/memory/ref_counted_memory.h" 13 #include "base/memory/ref_counted_memory.h"
15 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
16 #include "content/browser/devtools/devtools_io_context.h" 15 #include "content/browser/devtools/devtools_io_context.h"
17 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
18 17
19 namespace content { 18 namespace content {
20 namespace protocol { 19 namespace protocol {
21 20
22 IOHandler::IOHandler(DevToolsIOContext* io_context) 21 IOHandler::IOHandler(DevToolsIOContext* io_context)
23 : io_context_(io_context) 22 : io_context_(io_context)
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 callback->sendSuccess(data->data(), eof); 64 callback->sendSuccess(data->data(), eof);
66 } 65 }
67 66
68 Response IOHandler::Close(const std::string& handle) { 67 Response IOHandler::Close(const std::string& handle) {
69 return io_context_->Close(handle) ? Response::OK() 68 return io_context_->Close(handle) ? Response::OK()
70 : Response::InvalidParams("Invalid stream handle"); 69 : Response::InvalidParams("Invalid stream handle");
71 } 70 }
72 71
73 } // namespace protocol 72 } // namespace protocol
74 } // namespace content 73 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_io_context.cc ('k') | extensions/browser/sandboxed_unpacker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698