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

Side by Side Diff: third_party/WebKit/Source/modules/webdatabase/Database.cpp

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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) 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2013 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 createDatabaseIdentifierFromSecurityOrigin(securityOrigin()), 760 createDatabaseIdentifierFromSecurityOrigin(securityOrigin()),
761 stringIdentifier(), sqliteErrorCode); 761 stringIdentifier(), sqliteErrorCode);
762 } 762 }
763 } 763 }
764 764
765 void Database::logErrorMessage(const String& message) 765 void Database::logErrorMessage(const String& message)
766 { 766 {
767 executionContext()->addConsoleMessage(ConsoleMessage::create(StorageMessageS ource, ErrorMessageLevel, message)); 767 executionContext()->addConsoleMessage(ConsoleMessage::create(StorageMessageS ource, ErrorMessageLevel, message));
768 } 768 }
769 769
770 DatabaseContext* Database::databaseContext() const
771 {
772 return m_databaseContext;
773 }
774
770 ExecutionContext* Database::executionContext() const 775 ExecutionContext* Database::executionContext() const
771 { 776 {
772 return databaseContext()->executionContext(); 777 return databaseContext()->executionContext();
773 } 778 }
774 779
775 void Database::closeImmediately() 780 void Database::closeImmediately()
776 { 781 {
777 ASSERT(executionContext()->isContextThread()); 782 ASSERT(executionContext()->isContextThread());
778 if (databaseContext()->databaseThreadAvailable() && opened()) { 783 if (databaseContext()->databaseThreadAvailable() && opened()) {
779 logErrorMessage("forcibly closing database"); 784 logErrorMessage("forcibly closing database");
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 SecurityOrigin* Database::securityOrigin() const 901 SecurityOrigin* Database::securityOrigin() const
897 { 902 {
898 if (executionContext()->isContextThread()) 903 if (executionContext()->isContextThread())
899 return m_contextThreadSecurityOrigin.get(); 904 return m_contextThreadSecurityOrigin.get();
900 if (databaseContext()->databaseThread()->isDatabaseThread()) 905 if (databaseContext()->databaseThread()->isDatabaseThread())
901 return m_databaseThreadSecurityOrigin.get(); 906 return m_databaseThreadSecurityOrigin.get();
902 return 0; 907 return 0;
903 } 908 }
904 909
905 } // namespace blink 910 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698