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

Side by Side Diff: chrome/browser/user_style_sheet_watcher.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
« no previous file with comments | « chrome/browser/upgrade_detector.cc ('k') | chrome/browser/user_style_sheet_watcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_USER_STYLE_SHEET_WATCHER_H_ 5 #ifndef CHROME_BROWSER_USER_STYLE_SHEET_WATCHER_H_
6 #define CHROME_BROWSER_USER_STYLE_SHEET_WATCHER_H_ 6 #define CHROME_BROWSER_USER_STYLE_SHEET_WATCHER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/files/file_path_watcher.h" 10 #include "base/files/file_path_watcher.h"
(...skipping 13 matching lines...) Expand all
24 BrowserThread::DeleteOnUIThread>, 24 BrowserThread::DeleteOnUIThread>,
25 public NotificationObserver { 25 public NotificationObserver {
26 public: 26 public:
27 explicit UserStyleSheetWatcher(const FilePath& profile_path); 27 explicit UserStyleSheetWatcher(const FilePath& profile_path);
28 28
29 void Init(); 29 void Init();
30 30
31 GURL user_style_sheet() const; 31 GURL user_style_sheet() const;
32 32
33 // NotificationObserver interface 33 // NotificationObserver interface
34 virtual void Observe(NotificationType type, 34 virtual void Observe(int type,
35 const NotificationSource& source, 35 const NotificationSource& source,
36 const NotificationDetails& details); 36 const NotificationDetails& details);
37 37
38 private: 38 private:
39 friend struct BrowserThread::DeleteOnThread<BrowserThread::UI>; 39 friend struct BrowserThread::DeleteOnThread<BrowserThread::UI>;
40 friend class DeleteTask<UserStyleSheetWatcher>; 40 friend class DeleteTask<UserStyleSheetWatcher>;
41 41
42 virtual ~UserStyleSheetWatcher(); 42 virtual ~UserStyleSheetWatcher();
43 43
44 // The directory containing User StyleSheets/Custom.css. 44 // The directory containing User StyleSheets/Custom.css.
45 FilePath profile_path_; 45 FilePath profile_path_;
46 46
47 // The loader object. 47 // The loader object.
48 scoped_refptr<UserStyleSheetLoader> loader_; 48 scoped_refptr<UserStyleSheetLoader> loader_;
49 49
50 // Watches for changes to the css file so we can reload the style sheet. 50 // Watches for changes to the css file so we can reload the style sheet.
51 scoped_ptr<base::files::FilePathWatcher> file_watcher_; 51 scoped_ptr<base::files::FilePathWatcher> file_watcher_;
52 52
53 NotificationRegistrar registrar_; 53 NotificationRegistrar registrar_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(UserStyleSheetWatcher); 55 DISALLOW_COPY_AND_ASSIGN(UserStyleSheetWatcher);
56 }; 56 };
57 57
58 #endif // CHROME_BROWSER_USER_STYLE_SHEET_WATCHER_H_ 58 #endif // CHROME_BROWSER_USER_STYLE_SHEET_WATCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/upgrade_detector.cc ('k') | chrome/browser/user_style_sheet_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698