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

Side by Side Diff: Source/modules/notifications/Notification.cpp

Issue 17648006: Rename WorkerContext to WorkerGlobalScope (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 6 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 | « Source/modules/modules.gypi ('k') | Source/modules/notifications/NotificationCenter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2009, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2009, 2011, 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 26 matching lines...) Expand all
37 37
38 #include "bindings/v8/Dictionary.h" 38 #include "bindings/v8/Dictionary.h"
39 #include "core/dom/Document.h" 39 #include "core/dom/Document.h"
40 #include "core/dom/ErrorEvent.h" 40 #include "core/dom/ErrorEvent.h"
41 #include "core/dom/EventNames.h" 41 #include "core/dom/EventNames.h"
42 #include "core/loader/ThreadableLoader.h" 42 #include "core/loader/ThreadableLoader.h"
43 #include "core/page/DOMWindow.h" 43 #include "core/page/DOMWindow.h"
44 #include "core/page/WindowFocusAllowedIndicator.h" 44 #include "core/page/WindowFocusAllowedIndicator.h"
45 #include "core/platform/network/ResourceRequest.h" 45 #include "core/platform/network/ResourceRequest.h"
46 #include "core/platform/network/ResourceResponse.h" 46 #include "core/platform/network/ResourceResponse.h"
47 #include "core/workers/WorkerContext.h" 47 #include "core/workers/WorkerGlobalScope.h"
48 #include "modules/notifications/DOMWindowNotifications.h" 48 #include "modules/notifications/DOMWindowNotifications.h"
49 #include "modules/notifications/NotificationCenter.h" 49 #include "modules/notifications/NotificationCenter.h"
50 #include "modules/notifications/NotificationClient.h" 50 #include "modules/notifications/NotificationClient.h"
51 #include "modules/notifications/NotificationController.h" 51 #include "modules/notifications/NotificationController.h"
52 #include "modules/notifications/NotificationPermissionCallback.h" 52 #include "modules/notifications/NotificationPermissionCallback.h"
53 53
54 namespace WebCore { 54 namespace WebCore {
55 55
56 Notification::Notification() 56 Notification::Notification()
57 : ActiveDOMObject(0) 57 : ActiveDOMObject(0)
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 void Notification::requestPermission(ScriptExecutionContext* context, PassRefPtr <NotificationPermissionCallback> callback) 288 void Notification::requestPermission(ScriptExecutionContext* context, PassRefPtr <NotificationPermissionCallback> callback)
289 { 289 {
290 ASSERT(toDocument(context)->page()); 290 ASSERT(toDocument(context)->page());
291 NotificationController::from(toDocument(context)->page())->client()->request Permission(context, callback); 291 NotificationController::from(toDocument(context)->page())->client()->request Permission(context, callback);
292 } 292 }
293 #endif 293 #endif
294 294
295 } // namespace WebCore 295 } // namespace WebCore
296 296
297 #endif // ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) 297 #endif // ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
OLDNEW
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/notifications/NotificationCenter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698