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

Side by Side Diff: Source/web/WebStorageEventDispatcherImpl.cpp

Issue 471503002: Cleanup namespace usage in Source/web/Web[I-Z]*.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/web/WebSpeechRecognitionResult.cpp ('k') | Source/web/WebSurroundingText.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 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 28 matching lines...) Expand all
39 #include "wtf/PassOwnPtr.h" 39 #include "wtf/PassOwnPtr.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 void WebStorageEventDispatcher::dispatchLocalStorageEvent( 43 void WebStorageEventDispatcher::dispatchLocalStorageEvent(
44 const WebString& key, const WebString& oldValue, 44 const WebString& key, const WebString& oldValue,
45 const WebString& newValue, const WebURL& origin, 45 const WebString& newValue, const WebURL& origin,
46 const WebURL& pageURL, WebStorageArea* sourceAreaInstance, 46 const WebURL& pageURL, WebStorageArea* sourceAreaInstance,
47 bool originatedInProcess) 47 bool originatedInProcess)
48 { 48 {
49 RefPtr<blink::SecurityOrigin> securityOrigin = blink::SecurityOrigin::create (origin); 49 RefPtr<SecurityOrigin> securityOrigin = SecurityOrigin::create(origin);
50 blink::StorageArea::dispatchLocalStorageEvent( 50 StorageArea::dispatchLocalStorageEvent(
51 key, oldValue, newValue, securityOrigin.get(), pageURL, 51 key, oldValue, newValue, securityOrigin.get(), pageURL,
52 sourceAreaInstance, originatedInProcess); 52 sourceAreaInstance, originatedInProcess);
53 } 53 }
54 54
55 void WebStorageEventDispatcher::dispatchSessionStorageEvent( 55 void WebStorageEventDispatcher::dispatchSessionStorageEvent(
56 const WebString& key, const WebString& oldValue, 56 const WebString& key, const WebString& oldValue,
57 const WebString& newValue, const WebURL& origin, 57 const WebString& newValue, const WebURL& origin,
58 const WebURL& pageURL, const WebStorageNamespace& sessionNamespace, 58 const WebURL& pageURL, const WebStorageNamespace& sessionNamespace,
59 WebStorageArea* sourceAreaInstance, bool originatedInProcess) 59 WebStorageArea* sourceAreaInstance, bool originatedInProcess)
60 { 60 {
61 RefPtr<blink::SecurityOrigin> securityOrigin = blink::SecurityOrigin::create (origin); 61 RefPtr<SecurityOrigin> securityOrigin = SecurityOrigin::create(origin);
62 blink::StorageArea::dispatchSessionStorageEvent( 62 StorageArea::dispatchSessionStorageEvent(
63 key, oldValue, newValue, securityOrigin.get(), pageURL, 63 key, oldValue, newValue, securityOrigin.get(), pageURL,
64 sessionNamespace, sourceAreaInstance, originatedInProcess); 64 sessionNamespace, sourceAreaInstance, originatedInProcess);
65 } 65 }
66 66
67 } // namespace blink 67 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebSpeechRecognitionResult.cpp ('k') | Source/web/WebSurroundingText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698