~zaspire/oxide/MediaAccessPermissionRequest

« back to all changes in this revision

Viewing changes to qt/core/glue/oxide_qt_web_context_adapter.cc

  • Committer: Olivier Tilloy
  • Date: 2015-03-11 15:26:30 UTC
  • mfrom: (1001.1.7 maxCacheSize)
  • Revision ID: olivier.tilloy@canonical.com-20150311152630-43qojafrdai9lkj2
Tags: BRANCH_1_6
Add WebContext.maxCacheSizeHint property.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// vim:expandtab:shiftwidth=2:tabstop=2:
2
 
// Copyright (C) 2013 Canonical Ltd.
 
2
// Copyright (C) 2013-2015 Canonical Ltd.
3
3
 
4
4
// This library is free software; you can redistribute it and/or
5
5
// modify it under the terms of the GNU Lesser General Public
276
276
  context_->SetAllowedExtraURLSchemes(set);
277
277
}
278
278
 
 
279
int WebContextAdapter::maxCacheSizeHint() const {
 
280
  return context_->GetMaxCacheSizeHint();
 
281
}
 
282
 
 
283
void WebContextAdapter::setMaxCacheSizeHint(int size) {
 
284
  context_->SetMaxCacheSizeHint(size);
 
285
}
 
286
 
279
287
WebContextAdapter::WebContextAdapter(QObject* q)
280
288
    : AdapterBase(q),
281
289
      context_(WebContext::Create(this)) {