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

Side by Side Diff: ios/chrome/browser/net/ios_chrome_http_user_agent_settings.h

Issue 1544743002: Switch to standard integer types in ios/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 IOS_CHROME_BROWSER_NET_IOS_CHROME_HTTP_USER_AGENT_SETTINGS_H_ 5 #ifndef IOS_CHROME_BROWSER_NET_IOS_CHROME_HTTP_USER_AGENT_SETTINGS_H_
6 #define IOS_CHROME_BROWSER_NET_IOS_CHROME_HTTP_USER_AGENT_SETTINGS_H_ 6 #define IOS_CHROME_BROWSER_NET_IOS_CHROME_HTTP_USER_AGENT_SETTINGS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
12 #include "base/macros.h" 11 #include "base/macros.h"
13 #include "base/prefs/pref_member.h" 12 #include "base/prefs/pref_member.h"
14 #include "net/url_request/http_user_agent_settings.h" 13 #include "net/url_request/http_user_agent_settings.h"
15 14
16 class PrefService; 15 class PrefService;
17 16
18 // An implementation of |HttpUserAgentSettings| that provides HTTP header 17 // An implementation of |HttpUserAgentSettings| that provides HTTP header
19 // Accept-Language value that tracks Pref settings. 18 // Accept-Language value that tracks Pref settings.
20 class IOSChromeHttpUserAgentSettings : public net::HttpUserAgentSettings { 19 class IOSChromeHttpUserAgentSettings : public net::HttpUserAgentSettings {
(...skipping 14 matching lines...) Expand all
35 34
36 // Avoid re-processing by caching the last value from the preferences and the 35 // Avoid re-processing by caching the last value from the preferences and the
37 // last result of processing via net::HttpUtil::GenerateAccept*Header(). 36 // last result of processing via net::HttpUtil::GenerateAccept*Header().
38 mutable std::string last_pref_accept_language_; 37 mutable std::string last_pref_accept_language_;
39 mutable std::string last_http_accept_language_; 38 mutable std::string last_http_accept_language_;
40 39
41 DISALLOW_COPY_AND_ASSIGN(IOSChromeHttpUserAgentSettings); 40 DISALLOW_COPY_AND_ASSIGN(IOSChromeHttpUserAgentSettings);
42 }; 41 };
43 42
44 #endif // IOS_CHROME_BROWSER_NET_IOS_CHROME_HTTP_USER_AGENT_SETTINGS_H_ 43 #endif // IOS_CHROME_BROWSER_NET_IOS_CHROME_HTTP_USER_AGENT_SETTINGS_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/net/image_fetcher_unittest.mm ('k') | ios/chrome/browser/net/ios_chrome_url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698