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

Side by Side Diff: webkit/tools/test_shell/simple_resource_loader_bridge.h

Issue 556095: Changes to support new cookie policy.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 WEBKIT_TOOLS_TEST_SHELL_SIMPLE_RESOURCE_LOADER_BRIDGE_H__ 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_RESOURCE_LOADER_BRIDGE_H__
6 #define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_RESOURCE_LOADER_BRIDGE_H__ 6 #define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_RESOURCE_LOADER_BRIDGE_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 class GURL; 10 class GURL;
11 class URLRequestContext; 11 class TestShellRequestContext;
12 12
13 class SimpleResourceLoaderBridge { 13 class SimpleResourceLoaderBridge {
14 public: 14 public:
15 // Call this function to initialize the simple resource loader bridge. If 15 // Call this function to initialize the simple resource loader bridge. If
16 // the given context is null, then a default TestShellRequestContext will be 16 // the given context is null, then a default TestShellRequestContext will be
17 // instantiated. Otherwise, a reference is taken to the given request 17 // instantiated. Otherwise, a reference is taken to the given request
18 // context, which will be released when Shutdown is called. The caller 18 // context, which will be released when Shutdown is called. The caller
19 // should not hold another reference to the request context! It is safe to 19 // should not hold another reference to the request context! It is safe to
20 // call this function multiple times. 20 // call this function multiple times.
21 // 21 //
22 // NOTE: If this function is not called, then a default request context will 22 // NOTE: If this function is not called, then a default request context will
23 // be initialized lazily. 23 // be initialized lazily.
24 // 24 //
25 static void Init(URLRequestContext* context); 25 static void Init(TestShellRequestContext* context);
26 26
27 // Call this function to shutdown the simple resource loader bridge. 27 // Call this function to shutdown the simple resource loader bridge.
28 static void Shutdown(); 28 static void Shutdown();
29 29
30 // May only be called after Init. 30 // May only be called after Init.
31 static void SetCookie(const GURL& url, 31 static void SetCookie(const GURL& url,
32 const GURL& first_party_for_cookies, 32 const GURL& first_party_for_cookies,
33 const std::string& cookie); 33 const std::string& cookie);
34 static std::string GetCookies(const GURL& url, 34 static std::string GetCookies(const GURL& url,
35 const GURL& first_party_for_cookies); 35 const GURL& first_party_for_cookies);
36 static bool EnsureIOThread(); 36 static bool EnsureIOThread();
37 static void SetAcceptAllCookies(bool accept_all_cookies); 37 static void SetAcceptAllCookies(bool accept_all_cookies);
38 }; 38 };
39 39
40 #endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_RESOURCE_LOADER_BRIDGE_H__ 40 #endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_RESOURCE_LOADER_BRIDGE_H__
OLDNEW
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | webkit/tools/test_shell/simple_resource_loader_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698