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

Side by Side Diff: content/public/browser/devtools_http_handler_delegate.h

Issue 20142003: Remove ref-counting from StreamListenSocket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 7 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 | Annotate | Revision Log
OLDNEW
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 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "net/socket/stream_listen_socket.h" 13 #include "net/socket/stream_listen_socket.h"
14 14
15 class GURL; 15 class GURL;
16 16
17 namespace content { 17 namespace content {
18 18
19 class RenderViewHost; 19 class RenderViewHost;
20 20
21 class DevToolsHttpHandlerDelegate { 21 class DevToolsHttpHandlerDelegate {
22 public: 22 public:
(...skipping 22 matching lines...) Expand all
45 virtual RenderViewHost* CreateNewTarget() = 0; 45 virtual RenderViewHost* CreateNewTarget() = 0;
46 46
47 // Returns the type of the target. 47 // Returns the type of the target.
48 virtual TargetType GetTargetType(RenderViewHost*) = 0; 48 virtual TargetType GetTargetType(RenderViewHost*) = 0;
49 49
50 // Provides the delegate with an ability to supply a description for views. 50 // Provides the delegate with an ability to supply a description for views.
51 virtual std::string GetViewDescription(content::RenderViewHost*) = 0; 51 virtual std::string GetViewDescription(content::RenderViewHost*) = 0;
52 52
53 // Creates named socket for reversed tethering implementation (used with 53 // Creates named socket for reversed tethering implementation (used with
54 // remote debugging, primarily for mobile). 54 // remote debugging, primarily for mobile).
55 virtual scoped_refptr<net::StreamListenSocket> CreateSocketForTethering( 55 virtual scoped_ptr<net::StreamListenSocket> CreateSocketForTethering(
56 net::StreamListenSocket::Delegate* delegate, 56 net::StreamListenSocket::Delegate* delegate,
57 std::string* name) = 0; 57 std::string* name) = 0;
58 }; 58 };
59 59
60 } // namespace content 60 } // namespace content
61 61
62 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_ 62 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_HTTP_HANDLER_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/tethering_handler.cc ('k') | content/shell/browser/shell_devtools_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698