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

Unified Diff: chrome/browser/net/chrome_sdch_policy.h

Issue 841883002: Add an eviction mechanism for SDCH dictionaries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync'd to p310544 Created 5 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 | « no previous file | chrome/browser/net/chrome_sdch_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_sdch_policy.h
diff --git a/chrome/browser/net/chrome_sdch_policy.h b/chrome/browser/net/chrome_sdch_policy.h
deleted file mode 100644
index 5e24906cade6f350b694d9ea43c152ea0849c69d..0000000000000000000000000000000000000000
--- a/chrome/browser/net/chrome_sdch_policy.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 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_NET_CHROME_SDCH_POLICY_H_
-#define CHROME_BROWSER_NET_CHROME_SDCH_POLICY_H_
-
-#include <string>
-
-#include "net/base/sdch_observer.h"
-#include "net/url_request/sdch_dictionary_fetcher.h"
-
-class GURL;
-
-namespace net {
-class SdchManager;
-class URLRequestContext;
-}
-
-// Implementation of chrome embedder policy for SDCH. Handles fetches.
-// TODO(rdsmith): Implement dictionary prioritization.
-class ChromeSdchPolicy : public net::SdchObserver {
- public:
- // Consumer must guarantee that |sdch_manager| and |context| outlive
- // this object.
- ChromeSdchPolicy(net::SdchManager* sdch_manager,
- net::URLRequestContext* context);
- ~ChromeSdchPolicy() override;
-
- void OnDictionaryFetched(const std::string& dictionary_text,
- const GURL& dictionary_url,
- const net::BoundNetLog& net_log);
-
- // SdchObserver implementation.
- void OnGetDictionary(net::SdchManager* manager,
- const GURL& request_url,
- const GURL& dictionary_url) override;
- void OnClearDictionaries(net::SdchManager* manager) override;
-
- private:
- net::SdchManager* manager_;
- net::SdchDictionaryFetcher fetcher_;
-};
-
-#endif // CHROME_BROWSER_NET_CHROME_SDCH_POLICY_H_
« no previous file with comments | « no previous file | chrome/browser/net/chrome_sdch_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698