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

Side by Side Diff: android_webview/browser/aw_resource_context.h

Issue 384413004: Remove default key slot from KeygenHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing android_webview. Created 6 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ANDROID_WEBVIEW_BROWSER_AW_RESOURCE_CONTEXT_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_RESOURCE_CONTEXT_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_RESOURCE_CONTEXT_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_RESOURCE_CONTEXT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 explicit AwResourceContext(net::URLRequestContextGetter* getter); 22 explicit AwResourceContext(net::URLRequestContextGetter* getter);
23 virtual ~AwResourceContext(); 23 virtual ~AwResourceContext();
24 24
25 void SetExtraHeaders(const GURL& url, const std::string& headers); 25 void SetExtraHeaders(const GURL& url, const std::string& headers);
26 std::string GetExtraHeaders(const GURL& url); 26 std::string GetExtraHeaders(const GURL& url);
27 27
28 // content::ResourceContext implementation. 28 // content::ResourceContext implementation.
29 virtual net::HostResolver* GetHostResolver() OVERRIDE; 29 virtual net::HostResolver* GetHostResolver() OVERRIDE;
30 virtual net::URLRequestContext* GetRequestContext() OVERRIDE; 30 virtual net::URLRequestContext* GetRequestContext() OVERRIDE;
31 virtual void CreateKeygenHandler(
32 uint32 key_size_in_bits,
33 const std::string& challenge_string,
34 const GURL& url,
35 const base::Callback<void(scoped_ptr<net::KeygenHandler>)>& callback)
36 OVERRIDE;
31 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE; 37 virtual bool AllowMicAccess(const GURL& origin) OVERRIDE;
32 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE; 38 virtual bool AllowCameraAccess(const GURL& origin) OVERRIDE;
33 39
34 private: 40 private:
35 net::URLRequestContextGetter* getter_; 41 net::URLRequestContextGetter* getter_;
36 42
37 base::Lock extra_headers_lock_; 43 base::Lock extra_headers_lock_;
38 std::map<std::string, std::string> extra_headers_; 44 std::map<std::string, std::string> extra_headers_;
39 45
40 DISALLOW_COPY_AND_ASSIGN(AwResourceContext); 46 DISALLOW_COPY_AND_ASSIGN(AwResourceContext);
41 }; 47 };
42 48
43 } // namespace android_webview 49 } // namespace android_webview
44 50
45 #endif // ANDROID_WEBVIEW_BROWSER_AW_RESOURCE_CONTEXT_H_ 51 #endif // ANDROID_WEBVIEW_BROWSER_AW_RESOURCE_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_resource_context.cc » ('j') | content/browser/loader/resource_scheduler_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698