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

Side by Side Diff: chrome/browser/chromeos/cros/network_library.h

Issue 10868113: Disable certificate patterns for device policy ONC files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review changes Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/network_library.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 friend class OncVirtualNetworkParser; 507 friend class OncVirtualNetworkParser;
508 508
509 // This allows the implementation classes access to privates. 509 // This allows the implementation classes access to privates.
510 NETWORK_LIBRARY_IMPL_FRIENDS; 510 NETWORK_LIBRARY_IMPL_FRIENDS;
511 511
512 FRIEND_TEST_ALL_PREFIXES(NetworkLibraryTest, GetUserExpandedValue); 512 FRIEND_TEST_ALL_PREFIXES(NetworkLibraryTest, GetUserExpandedValue);
513 FRIEND_TEST_ALL_PREFIXES(OncNetworkParserTest, 513 FRIEND_TEST_ALL_PREFIXES(OncNetworkParserTest,
514 TestLoadWifiCertificatePattern); 514 TestLoadWifiCertificatePattern);
515 FRIEND_TEST_ALL_PREFIXES(OncNetworkParserTest, 515 FRIEND_TEST_ALL_PREFIXES(OncNetworkParserTest,
516 TestLoadVPNCertificatePattern); 516 TestLoadVPNCertificatePattern);
517 FRIEND_TEST_ALL_PREFIXES(OncNetworkParserTest,
518 TestNoCertificatePatternForDevicePolicy);
517 FRIEND_TEST_ALL_PREFIXES(NetworkLibraryStubTest, NetworkConnectOncWifi); 519 FRIEND_TEST_ALL_PREFIXES(NetworkLibraryStubTest, NetworkConnectOncWifi);
518 FRIEND_TEST_ALL_PREFIXES(NetworkLibraryStubTest, NetworkConnectOncVPN); 520 FRIEND_TEST_ALL_PREFIXES(NetworkLibraryStubTest, NetworkConnectOncVPN);
519 521
520 // Use these functions at your peril. They are used by the various 522 // Use these functions at your peril. They are used by the various
521 // parsers to set state, and really shouldn't be used by anything else 523 // parsers to set state, and really shouldn't be used by anything else
522 // because they don't do the error checking and sending to the 524 // because they don't do the error checking and sending to the
523 // network layer that the other setters do. 525 // network layer that the other setters do.
524 void set_device_path(const std::string& device_path) { 526 void set_device_path(const std::string& device_path) {
525 device_path_ = device_path; 527 device_path_ = device_path;
526 } 528 }
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1706 const std::string& service_path) = 0; 1708 const std::string& service_path) = 0;
1707 1709
1708 // Factory function, creates a new instance and returns ownership. 1710 // Factory function, creates a new instance and returns ownership.
1709 // For normal usage, access the singleton via CrosLibrary::Get(). 1711 // For normal usage, access the singleton via CrosLibrary::Get().
1710 static NetworkLibrary* GetImpl(bool stub); 1712 static NetworkLibrary* GetImpl(bool stub);
1711 }; 1713 };
1712 1714
1713 } // namespace chromeos 1715 } // namespace chromeos
1714 1716
1715 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 1717 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/network_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698