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

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

Issue 2806084: Add SimpleResourceLoaderBridge::GetIoThread(), so it's possible to run tasks ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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
« no previous file with comments | « no previous file | webkit/tools/test_shell/simple_resource_loader_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 19 matching lines...) Expand all
30 30
31 // May only be called after Init. 31 // May only be called after Init.
32 static void SetCookie(const GURL& url, 32 static void SetCookie(const GURL& url,
33 const GURL& first_party_for_cookies, 33 const GURL& first_party_for_cookies,
34 const std::string& cookie); 34 const std::string& cookie);
35 static std::string GetCookies(const GURL& url, 35 static std::string GetCookies(const GURL& url,
36 const GURL& first_party_for_cookies); 36 const GURL& first_party_for_cookies);
37 static bool EnsureIOThread(); 37 static bool EnsureIOThread();
38 static void SetAcceptAllCookies(bool accept_all_cookies); 38 static void SetAcceptAllCookies(bool accept_all_cookies);
39 39
40 // This method should only be called after Init(), and before Shutdown(). 40 // These methods should only be called after Init(), and before
41 // Shutdown(). The MessageLoops get replaced upon each call to
42 // Init(), and destroyed upon a call to ShutDown().
41 static scoped_refptr<base::MessageLoopProxy> GetCacheThread(); 43 static scoped_refptr<base::MessageLoopProxy> GetCacheThread();
44 static scoped_refptr<base::MessageLoopProxy> GetIoThread();
42 }; 45 };
43 46
44 #endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_RESOURCE_LOADER_BRIDGE_H__ 47 #endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_RESOURCE_LOADER_BRIDGE_H__
OLDNEW
« no previous file with comments | « no previous file | webkit/tools/test_shell/simple_resource_loader_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698