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

Side by Side Diff: chrome/test/chromedriver/net/url_request_context_getter.h

Issue 11316115: [chromedriver] Write websocket client and sync websocket client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_TEST_CHROMEDRIVER_NET_URL_REQUEST_CONTEXT_GETTER_H_
6 #define CHROME_TEST_CHROMEDRIVER_NET_URL_REQUEST_CONTEXT_GETTER_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "net/url_request/url_request_context_getter.h"
13
14 namespace base {
15 class SingleThreadTaskRunner;
16 }
17
18 namespace net {
19 class URLRequestContext;
20 }
21
22 class URLRequestContextGetter : public net::URLRequestContextGetter {
23 public:
24 URLRequestContextGetter(
25 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner);
26
27 // Overridden from net::URLRequestContextGetter:
28 virtual net::URLRequestContext* GetURLRequestContext() OVERRIDE;
29 virtual scoped_refptr<base::SingleThreadTaskRunner>
30 GetNetworkTaskRunner() const OVERRIDE;
31
32 private:
33 virtual ~URLRequestContextGetter();
34
35 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
36
37 // Only accessed on the IO thread.
38 scoped_ptr<net::URLRequestContext> url_request_context_;
39
40 DISALLOW_COPY_AND_ASSIGN(URLRequestContextGetter);
41 };
42
43 #endif // CHROME_TEST_CHROMEDRIVER_NET_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698