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

Side by Side Diff: content/shell/browser/shell_network_delegate.h

Issue 2125523003: Rename setAlwaysAcceptCookies to setBlockThirdPartyCookies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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
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 CONTENT_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_ 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_ 6 #define CONTENT_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "net/base/network_delegate_impl.h" 10 #include "net/base/network_delegate_impl.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class ShellNetworkDelegate : public net::NetworkDelegateImpl { 14 class ShellNetworkDelegate : public net::NetworkDelegateImpl {
15 public: 15 public:
16 ShellNetworkDelegate(); 16 ShellNetworkDelegate();
17 ~ShellNetworkDelegate() override; 17 ~ShellNetworkDelegate() override;
18 18
19 static void SetAcceptAllCookies(bool accept); 19 static void SetBlockThirdPartyCookies(bool block);
20 20
21 private: 21 private:
22 // net::NetworkDelegate implementation. 22 // net::NetworkDelegate implementation.
23 int OnBeforeURLRequest(net::URLRequest* request, 23 int OnBeforeURLRequest(net::URLRequest* request,
24 const net::CompletionCallback& callback, 24 const net::CompletionCallback& callback,
25 GURL* new_url) override; 25 GURL* new_url) override;
26 int OnBeforeStartTransaction(net::URLRequest* request, 26 int OnBeforeStartTransaction(net::URLRequest* request,
27 const net::CompletionCallback& callback, 27 const net::CompletionCallback& callback,
28 net::HttpRequestHeaders* headers) override; 28 net::HttpRequestHeaders* headers) override;
29 void OnStartTransaction(net::URLRequest* request, 29 void OnStartTransaction(net::URLRequest* request,
(...skipping 24 matching lines...) Expand all
54 const base::FilePath& path) const override; 54 const base::FilePath& path) const override;
55 bool OnAreExperimentalCookieFeaturesEnabled() const override; 55 bool OnAreExperimentalCookieFeaturesEnabled() const override;
56 bool OnAreStrictSecureCookiesEnabled() const override; 56 bool OnAreStrictSecureCookiesEnabled() const override;
57 57
58 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate); 58 DISALLOW_COPY_AND_ASSIGN(ShellNetworkDelegate);
59 }; 59 };
60 60
61 } // namespace content 61 } // namespace content
62 62
63 #endif // CONTENT_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_ 63 #endif // CONTENT_SHELL_BROWSER_SHELL_NETWORK_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698