forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent_updater_command_line_config_policy.h
52 lines (40 loc) · 1.6 KB
/
component_updater_command_line_config_policy.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Copyright 2018 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 COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_COMMAND_LINE_CONFIG_POLICY_H_
#define COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_COMMAND_LINE_CONFIG_POLICY_H_
#include "base/macros.h"
#include "components/update_client/command_line_config_policy.h"
#include "url/gurl.h"
namespace base {
class CommandLine;
}
namespace component_updater {
// Component updater config policy implementation.
class ComponentUpdaterCommandLineConfigPolicy final
: public update_client::CommandLineConfigPolicy {
public:
explicit ComponentUpdaterCommandLineConfigPolicy(
const base::CommandLine* cmdline);
// update_client::CommandLineConfigPolicy overrides.
bool BackgroundDownloadsEnabled() const override;
bool DeltaUpdatesEnabled() const override;
bool FastUpdate() const override;
bool PingsEnabled() const override;
bool TestRequest() const override;
GURL UrlSourceOverride() const override;
int InitialDelay() const override;
private:
bool background_downloads_enabled_ = false;
bool deltas_enabled_ = true;
bool fast_update_ = false;
bool pings_enabled_ = true;
bool test_request_ = false;
// If non-zero, time interval in seconds until the first component
// update check.
int initial_delay_ = 0;
GURL url_source_override_;
DISALLOW_COPY_AND_ASSIGN(ComponentUpdaterCommandLineConfigPolicy);
};
} // namespace component_updater
#endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_COMMAND_LINE_CONFIG_POLICY_H_