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

Side by Side Diff: chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.h

Issue 2329143002: NOT FOR REVIEW. SAMPLE CODE ONLY. (Closed)
Patch Set: rebase Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SETTINGS_CHROMEOS_CUPS_PRINTERS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_CUPS_PRINTERS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_CUPS_PRINTERS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_CUPS_PRINTERS_HANDLER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" 9 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
10 10
(...skipping 16 matching lines...) Expand all
27 void RegisterMessages() override; 27 void RegisterMessages() override;
28 void OnJavascriptAllowed() override{}; 28 void OnJavascriptAllowed() override{};
29 void OnJavascriptDisallowed() override{}; 29 void OnJavascriptDisallowed() override{};
30 30
31 private: 31 private:
32 // Gets all CUPS printers and return it to WebUI. 32 // Gets all CUPS printers and return it to WebUI.
33 void HandleGetCupsPrintersList(const base::ListValue* args); 33 void HandleGetCupsPrintersList(const base::ListValue* args);
34 34
35 void HandleUpdateCupsPrinter(const base::ListValue* args); 35 void HandleUpdateCupsPrinter(const base::ListValue* args);
36 void HandleRemoveCupsPrinter(const base::ListValue* args); 36 void HandleRemoveCupsPrinter(const base::ListValue* args);
37 void HandleAddCupsPrinter(const base::ListValue* args);
37 38
38 Profile* profile_; 39 Profile* profile_;
39 base::WeakPtrFactory<CupsPrintersHandler> weak_factory_; 40 base::WeakPtrFactory<CupsPrintersHandler> weak_factory_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(CupsPrintersHandler); 42 DISALLOW_COPY_AND_ASSIGN(CupsPrintersHandler);
42 }; 43 };
43 44
44 } // namespace settings 45 } // namespace settings
45 } // namespace chromeos 46 } // namespace chromeos
46 47
47 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_CUPS_PRINTERS_HANDLER_H_ 48 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_CUPS_PRINTERS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698