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

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

Issue 133503002: Quota: Implement StorageQuotaClient (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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/StorageQuotaClientImpl.cpp ('k') | Source/web/web.gypi » ('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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 30 matching lines...) Expand all
41 #include "HTMLNames.h" 41 #include "HTMLNames.h"
42 #include "LinkHighlight.h" 42 #include "LinkHighlight.h"
43 #include "LocalFileSystemClient.h" 43 #include "LocalFileSystemClient.h"
44 #include "MIDIClientProxy.h" 44 #include "MIDIClientProxy.h"
45 #include "PinchViewports.h" 45 #include "PinchViewports.h"
46 #include "PopupContainer.h" 46 #include "PopupContainer.h"
47 #include "PrerendererClientImpl.h" 47 #include "PrerendererClientImpl.h"
48 #include "RuntimeEnabledFeatures.h" 48 #include "RuntimeEnabledFeatures.h"
49 #include "SpeechInputClientImpl.h" 49 #include "SpeechInputClientImpl.h"
50 #include "SpeechRecognitionClientProxy.h" 50 #include "SpeechRecognitionClientProxy.h"
51 #include "StorageQuotaClientImpl.h"
51 #include "ValidationMessageClientImpl.h" 52 #include "ValidationMessageClientImpl.h"
52 #include "ViewportAnchor.h" 53 #include "ViewportAnchor.h"
53 #include "WebAXObject.h" 54 #include "WebAXObject.h"
54 #include "WebActiveWheelFlingParameters.h" 55 #include "WebActiveWheelFlingParameters.h"
55 #include "WebAutofillClient.h" 56 #include "WebAutofillClient.h"
56 #include "WebDevToolsAgentImpl.h" 57 #include "WebDevToolsAgentImpl.h"
57 #include "WebDevToolsAgentPrivate.h" 58 #include "WebDevToolsAgentPrivate.h"
58 #include "WebFrameImpl.h" 59 #include "WebFrameImpl.h"
59 #include "WebHelperPluginImpl.h" 60 #include "WebHelperPluginImpl.h"
60 #include "WebHitTestResult.h" 61 #include "WebHitTestResult.h"
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 provideSpeechRecognitionTo(m_page.get(), m_speechRecognitionClient.get()); 404 provideSpeechRecognitionTo(m_page.get(), m_speechRecognitionClient.get());
404 provideNotification(m_page.get(), notificationPresenterImpl()); 405 provideNotification(m_page.get(), notificationPresenterImpl());
405 provideNavigatorContentUtilsTo(m_page.get(), m_navigatorContentUtilsClient.g et()); 406 provideNavigatorContentUtilsTo(m_page.get(), m_navigatorContentUtilsClient.g et());
406 407
407 provideContextFeaturesTo(m_page.get(), m_featureSwitchClient.get()); 408 provideContextFeaturesTo(m_page.get(), m_featureSwitchClient.get());
408 provideGeolocationTo(m_page.get(), m_geolocationClientProxy.get()); 409 provideGeolocationTo(m_page.get(), m_geolocationClientProxy.get());
409 m_geolocationClientProxy->setController(GeolocationController::from(m_page.g et())); 410 m_geolocationClientProxy->setController(GeolocationController::from(m_page.g et()));
410 411
411 provideLocalFileSystemTo(m_page.get(), LocalFileSystemClient::create()); 412 provideLocalFileSystemTo(m_page.get(), LocalFileSystemClient::create());
412 provideDatabaseClientTo(m_page.get(), DatabaseClientImpl::create()); 413 provideDatabaseClientTo(m_page.get(), DatabaseClientImpl::create());
414 provideStorageQuotaClientTo(m_page.get(), StorageQuotaClientImpl::create());
413 m_validationMessage = ValidationMessageClientImpl::create(*this); 415 m_validationMessage = ValidationMessageClientImpl::create(*this);
414 m_page->setValidationMessageClient(m_validationMessage.get()); 416 m_page->setValidationMessageClient(m_validationMessage.get());
415 provideWorkerGlobalScopeProxyProviderTo(m_page.get(), WorkerGlobalScopeProxy ProviderImpl::create()); 417 provideWorkerGlobalScopeProxyProviderTo(m_page.get(), WorkerGlobalScopeProxy ProviderImpl::create());
416 418
417 m_page->setGroupType(Page::SharedPageGroup); 419 m_page->setGroupType(Page::SharedPageGroup);
418 420
419 if (m_client) { 421 if (m_client) {
420 setDeviceScaleFactor(m_client->screenInfo().deviceScaleFactor); 422 setDeviceScaleFactor(m_client->screenInfo().deviceScaleFactor);
421 setVisibilityState(m_client->visibilityState(), true); 423 setVisibilityState(m_client->visibilityState(), true);
422 } 424 }
(...skipping 3579 matching lines...) Expand 10 before | Expand all | Expand 10 after
4002 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints(); 4004 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints();
4003 4005
4004 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) 4006 if (!mainFrameImpl() || !mainFrameImpl()->frameView())
4005 return false; 4007 return false;
4006 4008
4007 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width 4009 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width
4008 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1); 4010 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1);
4009 } 4011 }
4010 4012
4011 } // namespace blink 4013 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/StorageQuotaClientImpl.cpp ('k') | Source/web/web.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698