| 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 #include "chrome/browser/user_style_sheet_watcher.h" | 5 #include "chrome/browser/user_style_sheet_watcher.h" |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/common/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
| 12 #include "content/public/browser/notification_service.h" | 12 #include "content/public/browser/notification_service.h" |
| 13 #include "content/public/browser/notification_types.h" | 13 #include "content/public/browser/notification_types.h" |
| 14 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
| 15 | 15 |
| 16 using ::base::FilePathWatcher; | 16 using ::base::FilePathWatcher; |
| 17 using content::BrowserThread; | 17 using content::BrowserThread; |
| 18 using content::WebContents; | 18 using content::WebContents; |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 if (profile_->IsSameProfile(Profile::FromBrowserContext( | 189 if (profile_->IsSameProfile(Profile::FromBrowserContext( |
| 190 content::Source<WebContents>(source)->GetBrowserContext()))) { | 190 content::Source<WebContents>(source)->GetBrowserContext()))) { |
| 191 loader_->NotifyLoaded(); | 191 loader_->NotifyLoaded(); |
| 192 registrar_.RemoveAll(); | 192 registrar_.RemoveAll(); |
| 193 } | 193 } |
| 194 } | 194 } |
| 195 | 195 |
| 196 void UserStyleSheetWatcher::ShutdownOnUIThread() { | 196 void UserStyleSheetWatcher::ShutdownOnUIThread() { |
| 197 registrar_.RemoveAll(); | 197 registrar_.RemoveAll(); |
| 198 } | 198 } |
| OLD | NEW |