Home
last modified time | relevance | path

Searched refs:context_ (Results 1 – 25 of 502) sorted by relevance

12345678910>>...21

/external/chromium_org/content/browser/dom_storage/
Ddom_storage_context_impl_unittest.cc48 context_ = new DOMStorageContextImpl(temp_dir_.path(), in SetUp()
74 scoped_refptr<DOMStorageContextImpl> context_; member in content::DOMStorageContextImplTest
82 EXPECT_EQ(temp_dir_.path(), context_->localstorage_directory()); in TEST_F()
83 EXPECT_EQ(base::FilePath(), context_->sessionstorage_directory()); in TEST_F()
84 EXPECT_EQ(storage_policy_.get(), context_->special_storage_policy_.get()); in TEST_F()
85 context_->DeleteLocalStorage(GURL("http://chromium.org/")); in TEST_F()
87 EXPECT_TRUE(context_->GetStorageNamespace(kLocalStorageNamespaceId)); in TEST_F()
88 EXPECT_FALSE(context_->GetStorageNamespace(kFirstSessionStorageNamespaceId)); in TEST_F()
89 EXPECT_EQ(kFirstSessionStorageNamespaceId, context_->AllocateSessionId()); in TEST_F()
91 context_->GetLocalStorageUsage(&infos, kDontIncludeFileInfo); in TEST_F()
[all …]
Ddom_storage_context_wrapper.cc69 context_ = new DOMStorageContextImpl( in DOMStorageContextWrapper()
88 DCHECK(context_.get()); in GetLocalStorageUsage()
89 context_->task_runner() in GetLocalStorageUsage()
94 context_, in GetLocalStorageUsage()
100 DCHECK(context_.get()); in GetSessionStorageUsage()
101 context_->task_runner() in GetSessionStorageUsage()
106 context_, in GetSessionStorageUsage()
111 DCHECK(context_.get()); in DeleteLocalStorage()
112 context_->task_runner()->PostShutdownBlockingTask( in DeleteLocalStorage()
115 base::Bind(&DOMStorageContextImpl::DeleteLocalStorage, context_, origin)); in DeleteLocalStorage()
[all …]
Ddom_storage_session.cc38 : context_(context), in DOMStorageSession()
45 context_, namespace_id_, persistent_namespace_id_)); in DOMStorageSession()
50 : context_(context), in DOMStorageSession()
57 context_, namespace_id_, persistent_namespace_id_)); in DOMStorageSession()
62 : context_(master_dom_storage_session->context_), in DOMStorageSession()
63 namespace_id_(master_dom_storage_session->context_->AllocateSessionId()), in DOMStorageSession()
67 context_->task_runner()->PostTask( in DOMStorageSession()
70 context_, in DOMStorageSession()
85 return context_.get() == context; in IsFromContext()
89 return CloneFrom(context_.get(), namespace_id_); in Clone()
[all …]
/external/chromium_org/content/browser/fileapi/
Dblob_storage_host.cc19 : context_(context->AsWeakPtr()) { in BlobStorageHost()
23 if (!context_.get()) in ~BlobStorageHost()
27 context_->RevokePublicBlobURL(*iter); in ~BlobStorageHost()
32 context_->DecrementBlobRefCount(iter->first); in ~BlobStorageHost()
37 if (!context_.get() || uuid.empty() || context_->IsInUse(uuid)) in StartBuildingBlob()
39 context_->StartBuildingBlob(uuid); in StartBuildingBlob()
46 if (!context_.get() || !IsBeingBuiltInHost(uuid)) in AppendBlobDataItem()
48 context_->AppendBlobDataItem(uuid, data_item); in AppendBlobDataItem()
53 if (!context_.get() || !IsBeingBuiltInHost(uuid)) in CancelBuildingBlob()
56 context_->CancelBuildingBlob(uuid); in CancelBuildingBlob()
[all …]
/external/chromium_org/net/url_request/
Durl_request_context_storage.cc29 : context_(context) { in URLRequestContextStorage()
36 context_->set_net_log(net_log); in set_net_log()
42 context_->set_host_resolver(host_resolver.get()); in set_host_resolver()
47 context_->set_cert_verifier(cert_verifier); in set_cert_verifier()
53 context_->set_channel_id_service(channel_id_service); in set_channel_id_service()
59 context_->set_fraudulent_certificate_reporter( in set_fraudulent_certificate_reporter()
66 context_->set_http_auth_handler_factory(http_auth_handler_factory); in set_http_auth_handler_factory()
71 context_->set_proxy_service(proxy_service); in set_proxy_service()
77 context_->set_ssl_config_service(ssl_config_service); in set_ssl_config_service()
83 context_->set_network_delegate(network_delegate); in set_network_delegate()
[all …]
/external/chromium_org/content/common/gpu/client/
Dgl_helper_benchmark.cc62 context_ = webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl:: in SetUp()
64 context_->InitializeOnCurrentThread(); in SetUp()
67 new content::GLHelper(context_->GetGLInterface(), in SetUp()
68 context_->GetContextSupport())); in SetUp()
70 context_->GetGLInterface(), in SetUp()
77 context_.reset(NULL); in TearDown()
111 context_; member in content::GLHelperTest
136 WebGLId src_texture = context_->createTexture(); in TEST_F()
137 WebGLId dst_texture = context_->createTexture(); in TEST_F()
138 WebGLId framebuffer = context_->createFramebuffer(); in TEST_F()
[all …]
Dgpu_context_tests.h43 if (!context_) in CONTEXT_TEST_F()
46 TestSignalSyncPoint(context_->insertSyncPoint()); in CONTEXT_TEST_F()
50 if (!context_) in CONTEXT_TEST_F()
59 if (!context_) in CONTEXT_TEST_F()
62 unsigned query = context_->createQueryEXT(); in CONTEXT_TEST_F()
63 context_->beginQueryEXT(GL_COMMANDS_ISSUED_CHROMIUM, query); in CONTEXT_TEST_F()
64 context_->finish(); in CONTEXT_TEST_F()
65 context_->endQueryEXT(GL_COMMANDS_ISSUED_CHROMIUM); in CONTEXT_TEST_F()
67 context_->deleteQueryEXT(query); in CONTEXT_TEST_F()
71 if (!context_) in CONTEXT_TEST_F()
[all …]
/external/chromium_org/third_party/webrtc/libjingle/xmllite/
Dxmlparser.cc64 context_.Reset(); in Reset()
79 if (context_.RaisedError() != XML_ERROR_NONE) in ExpatStartElement()
82 context_.StartElement(); in ExpatStartElement()
86 context_.StartNamespace("", *(att + 1)); in ExpatStartElement()
91 context_.RaiseError(XML_ERROR_SYNTAX); in ExpatStartElement()
94 context_.StartNamespace((*att) + 6, *(att + 1)); in ExpatStartElement()
98 context_.SetPosition(XML_GetCurrentLineNumber(expat_), in ExpatStartElement()
101 pxph_->StartElement(&context_, name, atts); in ExpatStartElement()
106 if (context_.RaisedError() != XML_ERROR_NONE) in ExpatEndElement()
108 context_.EndElement(); in ExpatEndElement()
[all …]
/external/chromium_org/third_party/libjingle/source/talk/xmllite/
Dxmlparser.cc81 context_.Reset(); in Reset()
96 if (context_.RaisedError() != XML_ERROR_NONE) in ExpatStartElement()
99 context_.StartElement(); in ExpatStartElement()
103 context_.StartNamespace("", *(att + 1)); in ExpatStartElement()
108 context_.RaiseError(XML_ERROR_SYNTAX); in ExpatStartElement()
111 context_.StartNamespace((*att) + 6, *(att + 1)); in ExpatStartElement()
115 context_.SetPosition(XML_GetCurrentLineNumber(expat_), in ExpatStartElement()
118 pxph_->StartElement(&context_, name, atts); in ExpatStartElement()
123 if (context_.RaisedError() != XML_ERROR_NONE) in ExpatEndElement()
125 context_.EndElement(); in ExpatEndElement()
[all …]
/external/chromium_org/ppapi/examples/gles2/
Dgles2.cc33 assert(!gles2_if_->GetError(context_->pp_resource()));
52 delete context_; in Graphics3DContextLost()
53 context_ = NULL; in Graphics3DContextLost()
81 pp::Graphics3D* context_; member in __anon4e396b560111::GLES2DemoInstance
91 context_(NULL), in GLES2DemoInstance()
98 delete context_; in ~GLES2DemoInstance()
126 if (context_) { in InitGL()
127 context_->ResizeBuffers(plugin_size_.width(), plugin_size_.height()); in InitGL()
143 context_ = new pp::Graphics3D(this, context_attributes); in InitGL()
144 assert(!context_->is_null()); in InitGL()
[all …]
/external/chromium_org/content/shell/renderer/test_runner/
Dtest_plugin.cc137 context_(0), in TestPlugin()
205 context_ = in initialize()
235 delete context_; in destroy()
236 context_ = 0; in destroy()
263 } else if (context_) { in updateGeometry()
264 context_->viewport(0, 0, rect_.width, rect_.height); in updateGeometry()
266 context_->bindTexture(GL_TEXTURE_2D, color_texture_); in updateGeometry()
267 context_->texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in updateGeometry()
268 context_->texParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in updateGeometry()
269 context_->texParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in updateGeometry()
[all …]
/external/chromium_org/ppapi/examples/video_decode/
Dvideo_decode_dev.cc39 assert(!gles2_if_->GetError(context_->pp_resource()));
186 pp::Graphics3D* context_; member in __anon372c10ce0111::VideoDecodeDemoInstance
235 context_(NULL) { in VideoDecodeDemoInstance()
243 gles2_if_->DeleteProgram(context_->pp_resource(), shader_2d_.program); in ~VideoDecodeDemoInstance()
246 context_->pp_resource(), shader_rectangle_arb_.program); in ~VideoDecodeDemoInstance()
254 delete context_; in ~VideoDecodeDemoInstance()
277 this, *context_, PP_VIDEODECODER_H264PROFILE_MAIN)); in InitializeDecoders()
434 gles2_if_->UseProgram(context_->pp_resource(), shader_2d_.program); in PictureReady()
436 context_->pp_resource(), shader_2d_.texcoord_scale_location, 1.0, 1.0); in PictureReady()
441 context_->pp_resource(), shader_rectangle_arb_.program); in PictureReady()
[all …]
/external/chromium_org/chrome/browser/chromeos/login/screens/
Dcontroller_pairing_screen.cc37 if (!context_.HasChanges()) in CommitContextChanges()
40 context_.GetChangesAndReset(&diff); in CommitContextChanges()
79 context_.SetStringList(kContextKeyDevices, StringList()); in PairingStageChanged()
80 context_.SetString(kContextKeySelectedDevice, std::string()); in PairingStageChanged()
98 context_.SetString(kContextKeyConfirmationCode, in PairingStageChanged()
139 context_.SetString(kContextKeyPage, desired_page); in PairingStageChanged()
140 context_.SetBoolean(kContextKeyControlsDisabled, false); in PairingStageChanged()
150 context_.SetStringList(kContextKeyDevices, devices); in DiscoveredDevicesListChanged()
151 context_.SetString( in DiscoveredDevicesListChanged()
154 std::string selected_device = context_.GetString(kContextKeySelectedDevice); in DiscoveredDevicesListChanged()
[all …]
/external/chromium_org/ui/gl/
Dgl_context_osmesa.cc18 context_(NULL) { in GLContextOSMesa()
23 DCHECK(!context_); in Initialize()
30 context_ = OSMesaCreateContextExt(format, in Initialize()
35 if (!context_) { in Initialize()
44 if (context_) { in Destroy()
45 OSMesaDestroyContext(static_cast<OSMesaContext>(context_)); in Destroy()
46 context_ = NULL; in Destroy()
51 DCHECK(context_); in MakeCurrent()
56 if (!OSMesaMakeCurrent(context_, in MakeCurrent()
96 DCHECK(context_); in IsCurrent()
[all …]
Dgl_context_egl.cc29 context_(NULL), in GLContextEGL()
38 DCHECK(!context_); in Initialize()
65 context_ = eglCreateContext( in Initialize()
71 if (!context_) { in Initialize()
81 if (context_) { in Destroy()
82 if (!eglDestroyContext(display_, context_)) { in Destroy()
87 context_ = NULL; in Destroy()
92 DCHECK(context_); in MakeCurrent()
98 "context", context_, in MakeCurrent()
109 context_)) { in MakeCurrent()
[all …]
Dgl_context_glx.cc23 context_(NULL), in GLContextGLX()
47 context_ = glXCreateContextAttribsARB( in Initialize()
53 if (!context_) { in Initialize()
60 context_ = glXCreateNewContext( in Initialize()
66 if (!context_) { in Initialize()
71 DCHECK(context_); in Initialize()
80 static_cast<GLXContext>(context_)) in Initialize()
88 if (context_) { in Destroy()
90 static_cast<GLXContext>(context_)); in Destroy()
91 context_ = NULL; in Destroy()
[all …]
Dgl_context_wgl.cc19 context_(NULL) { in GLContextWGL()
46 context_ = wglCreateContext( in Initialize()
48 if (!context_) { in Initialize()
55 if (!wglShareLists(share_handle, context_)) { in Initialize()
66 if (context_) { in Destroy()
67 wglDeleteContext(context_); in Destroy()
68 context_ = NULL; in Destroy()
73 DCHECK(context_); in MakeCurrent()
80 if (!wglMakeCurrent(static_cast<HDC>(surface->GetHandle()), context_)) { in MakeCurrent()
112 wglGetCurrentContext() == context_; in IsCurrent()
[all …]
/external/chromium_org/components/policy/core/common/cloud/
Dsystem_policy_request_context.cc29 if (!context_.get()) { in GetURLRequestContext()
31 context_.reset(new net::URLRequestContext()); in GetURLRequestContext()
40 context_->set_net_log(system_context->net_log()); in GetURLRequestContext()
41 context_->set_host_resolver(system_context->host_resolver()); in GetURLRequestContext()
42 context_->set_proxy_service(system_context->proxy_service()); in GetURLRequestContext()
43 context_->set_ssl_config_service( in GetURLRequestContext()
49 context_->set_job_factory(system_context->job_factory()); in GetURLRequestContext()
52 context_->set_http_user_agent_settings(&http_user_agent_settings_); in GetURLRequestContext()
57 context_->set_http_transaction_factory(http_transaction_factory_.get()); in GetURLRequestContext()
61 context_->set_cookie_store(new net::CookieMonster(NULL, NULL)); in GetURLRequestContext()
[all …]
/external/chromium_org/printing/
Dpdf_metafile_cg_mac.cc73 DCHECK(!context_.get()); in Init()
88 context_.reset(CGPDFContextCreate(pdf_consumer, NULL, NULL)); in Init()
89 if (!context_.get()) { in Init()
99 DCHECK(!context_.get()); in InitFromData()
123 DCHECK(context_.get()); in StartPage()
130 CGContextBeginPage(context_, &bounds); in StartPage()
132 CGContextSaveGState(context_); in StartPage()
135 CGContextTranslateCTM(context_, content_area.x(), -content_area.y()); in StartPage()
138 CGContextTranslateCTM(context_, 0, height); in StartPage()
139 CGContextScaleCTM(context_, scale_factor, -scale_factor); in StartPage()
[all …]
/external/chromium_org/base/
Dasync_socket_io_handler_win.cc11 context_(NULL), in AsyncSocketIoHandler()
19 if (context_) { in ~AsyncSocketIoHandler()
22 context_->handler = NULL; in ~AsyncSocketIoHandler()
24 delete context_; in ~AsyncSocketIoHandler()
35 DCHECK_EQ(context_, context); in OnIOCompleted()
49 &context_->overlapped); in Read()
60 DCHECK(!context_); in Initialize()
70 context_ = new base::MessageLoopForIO::IOContext(); in Initialize()
71 context_->handler = this; in Initialize()
72 memset(&context_->overlapped, 0, sizeof(context_->overlapped)); in Initialize()
/external/chromium_org/mojo/services/test_service/
Dtest_request_tracker_impl.cc15 : context_(context), weak_factory_(this) { in TestRequestTrackerImpl()
24 assert(context_->ids_to_names.find(client_id) != in RecordStats()
25 context_->ids_to_names.end()); in RecordStats()
26 context_->records[client_id].push_back(*stats); in RecordStats()
30 uint64_t id = context_->next_id++; in OnConnectionEstablished()
39 DCHECK(context_->ids_to_names.find(id) == context_->ids_to_names.end()); in UploaderNameCallback()
40 context_->ids_to_names[id] = name; in UploaderNameCallback()
45 : context_(context) { in TestTrackedRequestServiceImpl()
54 for (AllRecordsMap::const_iterator it1 = context_->records.begin(); in GetReport()
55 it1 != context_->records.end(); ++it1) { in GetReport()
[all …]
/external/chromium_org/ppapi/examples/gles2_spinning_cube/
Dgles2_spinning_cube.cc51 pp::Graphics3D* context_; member in __anon3de7781c0111::DemoInstance
60 context_(NULL) {} in DemoInstance()
64 delete context_; in ~DemoInstance()
85 delete context_; in Graphics3DContextLost()
86 context_ = NULL; in Graphics3DContextLost()
95 if (context_) { in InitGL()
96 context_->ResizeBuffers(plugin_size_.width(), plugin_size_.height()); in InitGL()
112 context_ = new pp::Graphics3D(this, context_attributes); in InitGL()
113 assert(!context_->is_null()); in InitGL()
114 assert(BindGraphics(*context_)); in InitGL()
[all …]
/external/chromium_org/net/base/
Dfile_stream.cc13 : context_(new Context(task_runner)) { in FileStream()
18 : context_(new Context(file.Pass(), task_runner)) { in FileStream()
22 context_.release()->Orphan(); in ~FileStream()
33 context_->Open(path, open_flags, callback); in Open()
38 context_->Close(callback); in Close()
43 return context_->file().IsValid(); in IsOpen()
52 context_->Seek(whence, offset, callback); in Seek()
65 return context_->Read(buf, buf_len, callback); in Read()
75 return context_->Write(buf, buf_len, callback); in Write()
82 context_->Flush(callback); in Flush()
[all …]
/external/chromium_org/mojo/cc/
Dcontext_provider_mojo.cc20 context_ = MojoGLES2CreateContext(command_buffer_handle_.release().value(), in BindToCurrentThread()
24 return !!context_; in BindToCurrentThread()
28 if (!context_) in ContextGL()
31 MojoGLES2GetGLES2Interface(context_)); in ContextGL()
35 if (!context_) in ContextSupport()
38 MojoGLES2GetContextSupport(context_)); in ContextSupport()
50 bool ContextProviderMojo::DestroyedOnMainThread() { return !context_; } in DestroyedOnMainThread()
53 if (context_) in ~ContextProviderMojo()
54 MojoGLES2DestroyContext(context_); in ~ContextProviderMojo()
/external/chromium_org/remoting/host/
Dremoting_me2me_host.cc270 scoped_ptr<ChromotingHostContext> context_; member in remoting::HostProcess
350 : context_(context.Pass()), in HostProcess()
386 context_->ui_task_runner(); in ~HostProcess()
387 task_runner->DeleteSoon(FROM_HERE, context_.release()); in ~HostProcess()
416 context_->network_task_runner()); in InitWithCommandLine()
426 context_->network_task_runner().get()); in InitWithCommandLine()
496 if (!context_->network_task_runner()->BelongsToCurrentThread()) { in OnConfigUpdated()
497 context_->network_task_runner()->PostTask(FROM_HERE, in OnConfigUpdated()
528 policy_hack::PolicyWatcher::Create(context_->file_task_runner())); in OnConfigUpdated()
546 DCHECK(context_->network_task_runner()->BelongsToCurrentThread()); in OnConfigWatcherError()
[all …]

12345678910>>...21