blob: 85a314f40252ea731fd6c6ee3a9dcffe5abbbddb (
plain)
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
53
54
55
56
57
58
59
60
61
62
|
// Copyright (c) 2012 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 CHROME_INSTALLER_UTIL_CHROME_FRAME_OPERATIONS_H_
#define CHROME_INSTALLER_UTIL_CHROME_FRAME_OPERATIONS_H_
#pragma once
#include <set>
#include <string>
#include <vector>
#include "base/basictypes.h"
#include "base/file_path.h"
#include "base/compiler_specific.h"
#include "chrome/installer/util/product_operations.h"
namespace installer {
// Operations specific to Chrome Frame; see ProductOperations for general info.
class ChromeFrameOperations : public ProductOperations {
public:
ChromeFrameOperations() {}
virtual void ReadOptions(const MasterPreferences& prefs,
std::set<std::wstring>* options) const OVERRIDE;
virtual void ReadOptions(const CommandLine& uninstall_command,
std::set<std::wstring>* options) const OVERRIDE;
virtual void AddKeyFiles(const std::set<std::wstring>& options,
std::vector<FilePath>* key_files) const OVERRIDE;
virtual void AddComDllList(
const std::set<std::wstring>& options,
std::vector<FilePath>* com_dll_list) const OVERRIDE;
virtual void AppendProductFlags(
const std::set<std::wstring>& options,
CommandLine* cmd_line) const OVERRIDE;
virtual void AppendRenameFlags(
const std::set<std::wstring>& options,
CommandLine* cmd_line) const OVERRIDE;
virtual bool SetChannelFlags(const std::set<std::wstring>& options,
bool set,
ChannelInfo* channel_info) const OVERRIDE;
virtual bool ShouldCreateUninstallEntry(
const std::set<std::wstring>& options) const OVERRIDE;
protected:
void NormalizeOptions(std::set<std::wstring>* options) const;
private:
DISALLOW_COPY_AND_ASSIGN(ChromeFrameOperations);
};
} // namespace installer
#endif // CHROME_INSTALLER_UTIL_CHROME_FRAME_OPERATIONS_H_
|