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

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

Issue 7633046: Fix VPN icon issues (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mock expectations. Created 9 years, 4 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 bool preferred() const { return priority_ != kPriorityNotSet; } 583 bool preferred() const { return priority_ != kPriorityNotSet; }
584 bool auto_connect() const { return auto_connect_; } 584 bool auto_connect() const { return auto_connect_; }
585 bool save_credentials() const { return save_credentials_; } 585 bool save_credentials() const { return save_credentials_; }
586 586
587 bool added() const { return added_; } 587 bool added() const { return added_; }
588 bool notify_failure() const { return notify_failure_; } 588 bool notify_failure() const { return notify_failure_; }
589 const std::string& profile_path() const { return profile_path_; } 589 const std::string& profile_path() const { return profile_path_; }
590 NetworkProfileType profile_type() const { return profile_type_; } 590 NetworkProfileType profile_type() const { return profile_type_; }
591 591
592 const std::string& unique_id() const { return unique_id_; } 592 const std::string& unique_id() const { return unique_id_; }
593 int priority_order() const { return priority_order_; }
593 594
594 const std::string& proxy_config() const { return proxy_config_; } 595 const std::string& proxy_config() const { return proxy_config_; }
595 596
596 void set_notify_failure(bool state) { notify_failure_ = state; } 597 void set_notify_failure(bool state) { notify_failure_ = state; }
597 598
598 void SetPreferred(bool preferred); 599 void SetPreferred(bool preferred);
599 600
600 void SetAutoConnect(bool auto_connect); 601 void SetAutoConnect(bool auto_connect);
601 602
602 void SetName(const std::string& name); 603 void SetName(const std::string& name);
(...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after
1623 virtual void SwitchToPreferredNetwork() = 0; 1624 virtual void SwitchToPreferredNetwork() = 0;
1624 1625
1625 // Factory function, creates a new instance and returns ownership. 1626 // Factory function, creates a new instance and returns ownership.
1626 // For normal usage, access the singleton via CrosLibrary::Get(). 1627 // For normal usage, access the singleton via CrosLibrary::Get().
1627 static NetworkLibrary* GetImpl(bool stub); 1628 static NetworkLibrary* GetImpl(bool stub);
1628 }; 1629 };
1629 1630
1630 } // namespace chromeos 1631 } // namespace chromeos
1631 1632
1632 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 1633 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/cros_mock.cc ('k') | chrome/browser/chromeos/cros/network_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698