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

Unified Diff: blimp/engine/app/blimp_network_delegate.cc

Issue 2629743003: Remove all blimp engine code (Closed)
Patch Set: Use consistent comment style in //chrome Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/engine/app/blimp_network_delegate.h ('k') | blimp/engine/app/blimp_permission_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/app/blimp_network_delegate.cc
diff --git a/blimp/engine/app/blimp_network_delegate.cc b/blimp/engine/app/blimp_network_delegate.cc
deleted file mode 100644
index 6689e59910cf4cf2c53b902dfc3f208caec50e03..0000000000000000000000000000000000000000
--- a/blimp/engine/app/blimp_network_delegate.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// 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.
-
-#include "blimp/engine/app/blimp_network_delegate.h"
-
-#include "net/base/net_errors.h"
-#include "net/base/static_cookie_policy.h"
-#include "net/url_request/url_request.h"
-
-namespace blimp {
-namespace engine {
-
-namespace {
-bool g_accept_all_cookies = true;
-
-net::StaticCookiePolicy::Type GetPolicyType() {
- return g_accept_all_cookies
- ? net::StaticCookiePolicy::ALLOW_ALL_COOKIES
- : net::StaticCookiePolicy::BLOCK_ALL_THIRD_PARTY_COOKIES;
-}
-
-} // namespace
-
-BlimpNetworkDelegate::BlimpNetworkDelegate() {}
-
-BlimpNetworkDelegate::~BlimpNetworkDelegate() {}
-
-void BlimpNetworkDelegate::SetAcceptAllCookies(bool accept) {
- g_accept_all_cookies = accept;
-}
-
-bool BlimpNetworkDelegate::OnCanGetCookies(const net::URLRequest& request,
- const net::CookieList& cookie_list) {
- net::StaticCookiePolicy policy(GetPolicyType());
- int rv =
- policy.CanGetCookies(request.url(), request.first_party_for_cookies());
- return rv == net::OK;
-}
-
-bool BlimpNetworkDelegate::OnCanSetCookie(const net::URLRequest& request,
- const std::string& cookie_line,
- net::CookieOptions* options) {
- net::StaticCookiePolicy policy(GetPolicyType());
- int rv =
- policy.CanSetCookie(request.url(), request.first_party_for_cookies());
- return rv == net::OK;
-}
-
-} // namespace engine
-} // namespace blimp
« no previous file with comments | « blimp/engine/app/blimp_network_delegate.h ('k') | blimp/engine/app/blimp_permission_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698