OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
6 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
7 #include "content/browser/browser_thread_impl.h" | 7 #include "content/browser/browser_thread_impl.h" |
8 #include "content/public/browser/devtools_http_handler.h" | 8 #include "content/public/browser/devtools_http_handler.h" |
9 #include "content/public/browser/devtools_http_handler_delegate.h" | 9 #include "content/public/browser/devtools_http_handler_delegate.h" |
10 #include "content/public/browser/devtools_target.h" | 10 #include "content/public/browser/devtools_target.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 class DummyDelegate : public DevToolsHttpHandlerDelegate { | 58 class DummyDelegate : public DevToolsHttpHandlerDelegate { |
59 public: | 59 public: |
60 virtual std::string GetDiscoveryPageHTML() OVERRIDE { return std::string(); } | 60 virtual std::string GetDiscoveryPageHTML() OVERRIDE { return std::string(); } |
61 virtual bool BundlesFrontendResources() OVERRIDE { return true; } | 61 virtual bool BundlesFrontendResources() OVERRIDE { return true; } |
62 virtual base::FilePath GetDebugFrontendDir() OVERRIDE { | 62 virtual base::FilePath GetDebugFrontendDir() OVERRIDE { |
63 return base::FilePath(); | 63 return base::FilePath(); |
64 } | 64 } |
65 virtual std::string GetPageThumbnailData(const GURL& url) OVERRIDE { | 65 virtual std::string GetPageThumbnailData(const GURL& url) OVERRIDE { |
66 return std::string(); | 66 return std::string(); |
67 } | 67 } |
68 virtual scoped_ptr<DevToolsTarget> CreateNewTarget(const GURL& url) OVERRIDE { | 68 virtual scoped_ptr<DevToolsTarget> CreateNewTarget() OVERRIDE { |
69 return scoped_ptr<DevToolsTarget>(); | 69 return scoped_ptr<DevToolsTarget>(); |
70 } | 70 } |
71 virtual void EnumerateTargets(TargetCallback callback) OVERRIDE { | 71 virtual void EnumerateTargets(TargetCallback callback) OVERRIDE { |
72 callback.Run(TargetList()); | 72 callback.Run(TargetList()); |
73 } | 73 } |
74 virtual scoped_ptr<net::StreamListenSocket> CreateSocketForTethering( | 74 virtual scoped_ptr<net::StreamListenSocket> CreateSocketForTethering( |
75 net::StreamListenSocket::Delegate* delegate, | 75 net::StreamListenSocket::Delegate* delegate, |
76 std::string* name) OVERRIDE { | 76 std::string* name) OVERRIDE { |
77 return scoped_ptr<net::StreamListenSocket>(); | 77 return scoped_ptr<net::StreamListenSocket>(); |
78 } | 78 } |
(...skipping 30 matching lines...) Expand all Loading... |
109 new DummyDelegate()); | 109 new DummyDelegate()); |
110 // Our dummy socket factory will post a quit message once the server will | 110 // Our dummy socket factory will post a quit message once the server will |
111 // become ready. | 111 // become ready. |
112 run_loop.Run(); | 112 run_loop.Run(); |
113 devtools_http_handler_->Stop(); | 113 devtools_http_handler_->Stop(); |
114 // Make sure the handler actually stops. | 114 // Make sure the handler actually stops. |
115 run_loop_2.Run(); | 115 run_loop_2.Run(); |
116 } | 116 } |
117 | 117 |
118 } // namespace content | 118 } // namespace content |
OLD | NEW |