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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.h

Issue 2704083002: Remove Page dependency from NetworkStateNotifier (Closed)
Patch Set: . Created 3 years, 10 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 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 RegisteredEventListener&) override; 318 RegisteredEventListener&) override;
319 void removedEventListener(const AtomicString& eventType, 319 void removedEventListener(const AtomicString& eventType,
320 const RegisteredEventListener&) override; 320 const RegisteredEventListener&) override;
321 321
322 // Protected DOMWindow overrides. 322 // Protected DOMWindow overrides.
323 void schedulePostMessage(MessageEvent*, 323 void schedulePostMessage(MessageEvent*,
324 PassRefPtr<SecurityOrigin> target, 324 PassRefPtr<SecurityOrigin> target,
325 Document* source) override; 325 Document* source) override;
326 326
327 private: 327 private:
328 class NetworkStateObserver;
329
328 // Intentionally private to prevent redundant checks when the type is 330 // Intentionally private to prevent redundant checks when the type is
329 // already LocalDOMWindow. 331 // already LocalDOMWindow.
330 bool isLocalDOMWindow() const override { return true; } 332 bool isLocalDOMWindow() const override { return true; }
331 bool isRemoteDOMWindow() const override { return false; } 333 bool isRemoteDOMWindow() const override { return false; }
332 void warnUnusedPreloads(TimerBase*); 334 void warnUnusedPreloads(TimerBase*);
333 335
334 explicit LocalDOMWindow(LocalFrame&); 336 explicit LocalDOMWindow(LocalFrame&);
335 void dispose(); 337 void dispose();
336 338
337 void dispatchLoadEvent(); 339 void dispatchLoadEvent();
(...skipping 12 matching lines...) Expand all
350 mutable Member<BarProp> m_locationbar; 352 mutable Member<BarProp> m_locationbar;
351 mutable Member<BarProp> m_menubar; 353 mutable Member<BarProp> m_menubar;
352 mutable Member<BarProp> m_personalbar; 354 mutable Member<BarProp> m_personalbar;
353 mutable Member<BarProp> m_scrollbars; 355 mutable Member<BarProp> m_scrollbars;
354 mutable Member<BarProp> m_statusbar; 356 mutable Member<BarProp> m_statusbar;
355 mutable Member<BarProp> m_toolbar; 357 mutable Member<BarProp> m_toolbar;
356 mutable Member<Navigator> m_navigator; 358 mutable Member<Navigator> m_navigator;
357 mutable Member<StyleMedia> m_media; 359 mutable Member<StyleMedia> m_media;
358 mutable TraceWrapperMember<CustomElementRegistry> m_customElements; 360 mutable TraceWrapperMember<CustomElementRegistry> m_customElements;
359 Member<External> m_external; 361 Member<External> m_external;
362 mutable Member<NetworkStateObserver> m_networkStateObserver;
360 363
361 String m_status; 364 String m_status;
362 String m_defaultStatus; 365 String m_defaultStatus;
363 366
364 mutable Member<ApplicationCache> m_applicationCache; 367 mutable Member<ApplicationCache> m_applicationCache;
365 368
366 Member<DOMWindowEventQueue> m_eventQueue; 369 Member<DOMWindowEventQueue> m_eventQueue;
367 RefPtr<SerializedScriptValue> m_pendingStateObject; 370 RefPtr<SerializedScriptValue> m_pendingStateObject;
368 371
369 HeapHashSet<Member<PostMessageTimer>> m_postMessageTimers; 372 HeapHashSet<Member<PostMessageTimer>> m_postMessageTimers;
(...skipping 10 matching lines...) Expand all
380 return m_status; 383 return m_status;
381 } 384 }
382 385
383 inline String LocalDOMWindow::defaultStatus() const { 386 inline String LocalDOMWindow::defaultStatus() const {
384 return m_defaultStatus; 387 return m_defaultStatus;
385 } 388 }
386 389
387 } // namespace blink 390 } // namespace blink
388 391
389 #endif // LocalDOMWindow_h 392 #endif // LocalDOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698