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

Side by Side Diff: chrome/browser/net/chrome_sdch_policy.h

Issue 423813002: Sdch view for net-internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix component linkage Created 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/net/chrome_sdch_policy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_NET_CHROME_SDCH_POLICY_H_ 5 #ifndef CHROME_BROWSER_NET_CHROME_SDCH_POLICY_H_
6 #define CHROME_BROWSER_NET_CHROME_SDCH_POLICY_H_ 6 #define CHROME_BROWSER_NET_CHROME_SDCH_POLICY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/base/sdch_observer.h" 10 #include "net/base/sdch_observer.h"
(...skipping 10 matching lines...) Expand all
21 // TODO(rdsmith): Implement dictionary prioritization. 21 // TODO(rdsmith): Implement dictionary prioritization.
22 class ChromeSdchPolicy : public net::SdchObserver { 22 class ChromeSdchPolicy : public net::SdchObserver {
23 public: 23 public:
24 // Consumer must guarantee that |sdch_manager| and |context| outlive 24 // Consumer must guarantee that |sdch_manager| and |context| outlive
25 // this object. 25 // this object.
26 ChromeSdchPolicy(net::SdchManager* sdch_manager, 26 ChromeSdchPolicy(net::SdchManager* sdch_manager,
27 net::URLRequestContext* context); 27 net::URLRequestContext* context);
28 ~ChromeSdchPolicy() override; 28 ~ChromeSdchPolicy() override;
29 29
30 void OnDictionaryFetched(const std::string& dictionary_text, 30 void OnDictionaryFetched(const std::string& dictionary_text,
31 const GURL& dictionary_url); 31 const GURL& dictionary_url,
32 const net::BoundNetLog& net_log);
32 33
33 // SdchObserver implementation. 34 // SdchObserver implementation.
34 void OnGetDictionary(net::SdchManager* manager, 35 void OnGetDictionary(net::SdchManager* manager,
35 const GURL& request_url, 36 const GURL& request_url,
36 const GURL& dictionary_url) override; 37 const GURL& dictionary_url) override;
37 void OnClearDictionaries(net::SdchManager* manager) override; 38 void OnClearDictionaries(net::SdchManager* manager) override;
38 39
39 private: 40 private:
40 net::SdchManager* manager_; 41 net::SdchManager* manager_;
41 net::SdchDictionaryFetcher fetcher_; 42 net::SdchDictionaryFetcher fetcher_;
42 }; 43 };
43 44
44 #endif // CHROME_BROWSER_NET_CHROME_SDCH_POLICY_H_ 45 #endif // CHROME_BROWSER_NET_CHROME_SDCH_POLICY_H_
OLDNEW
« 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