OLD | NEW |
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_UI_WEBUI_OPTIONS2_CERTIFICATE_MANAGER_HANDLER2_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CERTIFICATE_MANAGER_HANDLER2_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CERTIFICATE_MANAGER_HANDLER2_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CERTIFICATE_MANAGER_HANDLER2_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "chrome/browser/cancelable_request.h" | 14 #include "chrome/browser/cancelable_request.h" |
15 #include "chrome/browser/certificate_manager_model.h" | 15 #include "chrome/browser/certificate_manager_model.h" |
16 #include "chrome/browser/ui/select_file_dialog.h" | 16 #include "chrome/browser/ui/select_file_dialog.h" |
17 #include "chrome/browser/ui/webui/options2/options_ui2.h" | 17 #include "chrome/browser/ui/webui/options2/options_ui2.h" |
18 #include "net/base/cert_database.h" | 18 #include "net/base/cert_database.h" |
19 #include "ui/gfx/native_widget_types.h" | 19 #include "ui/gfx/native_widget_types.h" |
20 | 20 |
21 #if defined(OS_CHROMEOS) | 21 #if defined(OS_CHROMEOS) |
22 #include "chrome/browser/chromeos/dbus/cryptohome_client.h" | 22 #include "chromeos/dbus/cryptohome_client.h" |
23 #endif | 23 #endif |
24 | 24 |
25 namespace options2 { | 25 namespace options2 { |
26 | 26 |
27 class FileAccessProvider; | 27 class FileAccessProvider; |
28 | 28 |
29 class CertificateManagerHandler : public OptionsPageUIHandler, | 29 class CertificateManagerHandler : public OptionsPageUIHandler, |
30 public CertificateManagerModel::Observer, | 30 public CertificateManagerModel::Observer, |
31 public SelectFileDialog::Listener { | 31 public SelectFileDialog::Listener { |
32 public: | 32 public: |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 scoped_refptr<FileAccessProvider> file_access_provider_; | 176 scoped_refptr<FileAccessProvider> file_access_provider_; |
177 | 177 |
178 base::WeakPtrFactory<CertificateManagerHandler> weak_ptr_factory_; | 178 base::WeakPtrFactory<CertificateManagerHandler> weak_ptr_factory_; |
179 | 179 |
180 DISALLOW_COPY_AND_ASSIGN(CertificateManagerHandler); | 180 DISALLOW_COPY_AND_ASSIGN(CertificateManagerHandler); |
181 }; | 181 }; |
182 | 182 |
183 } // namespace options2 | 183 } // namespace options2 |
184 | 184 |
185 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CERTIFICATE_MANAGER_HANDLER2_H_ | 185 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CERTIFICATE_MANAGER_HANDLER2_H_ |
OLD | NEW |