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

Unified Diff: chrome/browser/extensions/api/gcd_private/privet_v3_context_getter.h

Issue 1435743004: Move PrivetV3ContextGetter into separate file next to privet_v3_session (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/gcd_private/privet_v3_context_getter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/gcd_private/privet_v3_context_getter.h
diff --git a/chrome/browser/extensions/api/gcd_private/privet_v3_context_getter.h b/chrome/browser/extensions/api/gcd_private/privet_v3_context_getter.h
new file mode 100644
index 0000000000000000000000000000000000000000..5bef50ba86937a9e38dc06cb0a6d1ab6d2697731
--- /dev/null
+++ b/chrome/browser/extensions/api/gcd_private/privet_v3_context_getter.h
@@ -0,0 +1,49 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_PRIVET_V3_CONTEXT_GETTER_H_
+#define CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_PRIVET_V3_CONTEXT_GETTER_H_
+
+#include "base/macros.h"
+#include "base/memory/ref_counted.h"
+#include "base/single_thread_task_runner.h"
+#include "net/url_request/url_request_context_getter.h"
+
+namespace base {
+class SingleThreadTaskRunner;
+}
+
+namespace net {
+class CertVerifier;
+class URLRequestContext;
+struct SHA256HashValue;
+}
+
+namespace extensions {
+
+class PrivetV3ContextGetter : public net::URLRequestContextGetter {
+ public:
+ PrivetV3ContextGetter(
+ const scoped_refptr<base::SingleThreadTaskRunner>& net_task_runner,
+ const net::SHA256HashValue& certificate_fingerprint);
+
+ net::URLRequestContext* GetURLRequestContext() override;
+
+ scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner()
+ const override;
+
+ protected:
+ ~PrivetV3ContextGetter() override;
+
+ private:
+ scoped_ptr<net::CertVerifier> verifier_;
+ scoped_ptr<net::URLRequestContext> context_;
+ scoped_refptr<base::SingleThreadTaskRunner> net_task_runner_;
+
+ DISALLOW_COPY_AND_ASSIGN(PrivetV3ContextGetter);
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_PRIVET_V3_CONTEXT_GETTER_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/api/gcd_private/privet_v3_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698